We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6640e3 commit 8b0537eCopy full SHA for 8b0537e
test/test.js
@@ -23,9 +23,10 @@ describe("run.js", function() {
23
fs.accessSync(`${boxDir}/run.js`, fs.F_OK);
24
});
25
26
- it("should throw an error when no files are passed", function(done) {
27
- exec(boxCommand, function(err) {
28
- assert.notStrictEqual(err, null);
+ it("should display a help text when no files are passed", function(done) {
+ exec(boxCommand, function(err, stdout) {
+ assert.strictEqual(err, null);
29
+ assert(stdout.includes("Usage:"));
30
done();
31
32
0 commit comments