Skip to content

Commit b02e5ec

Browse files
author
Juan Soto
committed
Add CLI test for logging failed tests
1 parent df48ce6 commit b02e5ec

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/cli.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ test('throwing a anonymous function will report the function to the console', fu
5959
t.end();
6060
});
6161
});
62+
63+
test('log failed tests', function (t) {
64+
execCli('fixture/one-pass-one-fail.js', function (err, stdout, stderr) {
65+
t.match(stderr, /AssertionError: false == true/);
66+
t.end();
67+
});
68+
});

0 commit comments

Comments
 (0)