Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7e2782e

Browse files
committedOct 13, 2019
additional test
1 parent 679800e commit 7e2782e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎test/reporters/base.spec.js

+16
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,22 @@ describe('Base reporter', function() {
417417
expect(errOut, 'to be', '1) test title:\n Error\n foo\n bar');
418418
});
419419

420+
it('should list multiple Errors per test', function() {
421+
var err = new Error('First Error');
422+
err.multiple = [new Error('Second Error - same test')];
423+
var test = makeTest(err);
424+
425+
list([test, test]);
426+
427+
var errOut = stdout.join('\n').trim();
428+
expect(
429+
errOut,
430+
'to contain',
431+
'Error: First Error',
432+
'Error: Second Error - same test'
433+
);
434+
});
435+
420436
describe('when reporter output immune to user test changes', function() {
421437
var sandbox;
422438
var baseConsoleLog;

0 commit comments

Comments
 (0)
Please sign in to comment.