Skip to content

Commit fa228cf

Browse files
committed
tmp
1 parent 6098902 commit fa228cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jscomp/build_tests/cli_help/input.js

+8
Original file line numberDiff line numberDiff line change
@@ -94,46 +94,54 @@ assert.equal(out.status, 0);
9494
console.groupEnd();
9595

9696
console.group("-w --help");
97+
console.log("@@ begin ");
9798
out = child_process.spawnSync(`../../../rescript`, ["-w", "--help"], {
9899
encoding: "utf8",
99100
cwd: __dirname,
100101
});
101102
assert.equal(out.stdout, cliHelp);
102103
assert.equal(out.stderr, "");
103104
assert.equal(out.status, 0);
105+
console.log("@@ done");
104106
console.groupEnd();
105107

106108
// Shows cli help with --help arg even if there are invalid arguments after it
107109
console.group("--help -w");
110+
console.log("@@ begin ");
108111
out = child_process.spawnSync(`../../../rescript`, ["--help", "-w"], {
109112
encoding: "utf8",
110113
cwd: __dirname,
111114
});
112115
assert.equal(out.stdout, cliHelp);
113116
assert.equal(out.stderr, "");
114117
assert.equal(out.status, 0);
118+
console.log("@@ done");
115119
console.groupEnd();
116120

117121
// Shows build help with -h arg
118122
console.group("build -h");
123+
console.log("@@ begin ");
119124
out = child_process.spawnSync(`../../../rescript`, ["build", "-h"], {
120125
encoding: "utf8",
121126
cwd: __dirname,
122127
});
123128
assert.equal(out.stdout, buildHelp);
124129
assert.equal(out.stderr, "");
125130
assert.equal(out.status, 0);
131+
console.log("@@ done ");
126132
console.groupEnd();
127133

128134
// Exits with build help with unknown arg
129135
console.group("build -foo");
136+
console.log("@@ begin ");
130137
out = child_process.spawnSync(`../../../rescript`, ["build", "-foo"], {
131138
encoding: "utf8",
132139
cwd: __dirname,
133140
});
134141
assert.equal(out.stdout, "");
135142
assert.equal(out.stderr, 'Error: Unknown option "-foo".\n' + buildHelp);
136143
assert.equal(out.status, 2);
144+
console.log("@@ done ");
137145
console.groupEnd();
138146

139147
// Shows cli help with --help arg

0 commit comments

Comments
 (0)