File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
jscomp/build_tests/cli_help Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -132,18 +132,18 @@ console.groupEnd();
132
132
// console.log("@@ done ");
133
133
// console.groupEnd();
134
134
//
135
- // // Exits with build help with unknown arg
136
- // console.group("build -foo");
137
- // console.log("@@ begin ");
138
- // out = child_process.spawnSync(`../../../rescript`, ["build", "-foo"], {
139
- // encoding: "utf8",
140
- // cwd: __dirname,
141
- // });
142
- // assert.equal(out.stdout, "");
143
- // assert.equal(out.stderr, 'Error: Unknown option "-foo".\n' + buildHelp);
144
- // assert.equal(out.status, 2);
145
- // console.log("@@ done ");
146
- // console.groupEnd();
135
+ // Exits with build help with unknown arg
136
+ console . group ( "build -foo" ) ;
137
+ console . log ( "@@ begin " ) ;
138
+ out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-foo" ] , {
139
+ encoding : "utf8" ,
140
+ cwd : __dirname ,
141
+ } ) ;
142
+ assert . equal ( out . stdout , "" ) ;
143
+ assert . equal ( out . stderr , 'Error: Unknown option "-foo".\n' + buildHelp ) ;
144
+ assert . equal ( out . status , 2 ) ;
145
+ console . log ( "@@ done " ) ;
146
+ console . groupEnd ( ) ;
147
147
148
148
// Shows cli help with --help arg
149
149
console . group ( "--help" ) ;
You can’t perform that action at this time.
0 commit comments