Skip to content

Commit 8b0537e

Browse files
committedMay 29, 2017
Fix tests to match new behaviour
1 parent f6640e3 commit 8b0537e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎test/test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ describe("run.js", function() {
2323
fs.accessSync(`${boxDir}/run.js`, fs.F_OK);
2424
});
2525
});
26-
it("should throw an error when no files are passed", function(done) {
27-
exec(boxCommand, function(err) {
28-
assert.notStrictEqual(err, null);
26+
it("should display a help text when no files are passed", function(done) {
27+
exec(boxCommand, function(err, stdout) {
28+
assert.strictEqual(err, null);
29+
assert(stdout.includes("Usage:"));
2930
done();
3031
});
3132
});

0 commit comments

Comments
 (0)