@@ -214,7 +214,7 @@ async function test() {
214
214
215
215
{
216
216
// Shows format help with --help arg
217
- const out = await exec ( `../../../rescript format ` , [ "--help" ] , {
217
+ const out = await exec ( `../../../rescript` , [ "format" , "--help" ] , {
218
218
cwd : __dirname ,
219
219
} ) ;
220
220
assert . equal ( out . stdout , formatHelp ) ;
@@ -224,7 +224,7 @@ async function test() {
224
224
225
225
{
226
226
// Shows format help with -h arg
227
- const out = await exec ( `../../../rescript format ` , [ "-h" ] , {
227
+ const out = await exec ( `../../../rescript` , [ "format" , "-h" ] , {
228
228
cwd : __dirname ,
229
229
} ) ;
230
230
assert . equal ( out . stdout , formatHelp ) ;
@@ -234,7 +234,7 @@ async function test() {
234
234
235
235
{
236
236
// Shows convert help with --help arg
237
- const out = await exec ( `../../../rescript convert ` , [ "--help" ] , {
237
+ const out = await exec ( `../../../rescript` , [ "convert" , "--help" ] , {
238
238
cwd : __dirname ,
239
239
} ) ;
240
240
assert . equal ( out . stdout , convertHelp ) ;
@@ -244,7 +244,7 @@ async function test() {
244
244
245
245
{
246
246
// Shows convert help with -h arg
247
- const out = await exec ( `../../../rescript convert ` , [ "-h" ] , {
247
+ const out = await exec ( `../../../rescript` , [ "convert" , "-h" ] , {
248
248
cwd : __dirname ,
249
249
} ) ;
250
250
assert . equal ( out . stdout , convertHelp ) ;
@@ -254,7 +254,7 @@ async function test() {
254
254
255
255
{
256
256
// Shows dump help with --help arg
257
- const out = await exec ( `../../../rescript dump ` , [ "--help" ] , {
257
+ const out = await exec ( `../../../rescript` , [ "dump" , "--help" ] , {
258
258
cwd : __dirname ,
259
259
} ) ;
260
260
assert . equal ( out . stdout , dumpHelp ) ;
@@ -264,7 +264,7 @@ async function test() {
264
264
265
265
{
266
266
// Shows dump help with -h arg
267
- const out = await exec ( `../../../rescript dump ` , [ "-h" ] , {
267
+ const out = await exec ( `../../../rescript` , [ "dump" , "-h" ] , {
268
268
cwd : __dirname ,
269
269
} ) ;
270
270
assert . equal ( out . stdout , dumpHelp ) ;
0 commit comments