Skip to content

Commit

Permalink
test: add tests for console.trace
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann committed Mar 16, 2020
1 parent ff91da0 commit af20d17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Resources/console.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ describe('console', function () {
should(console.warn).be.a.Function;
});

it('#trace', () => {
should(console.trace).be.a.Function;
});

it('#time', () => {
should(console.time).be.a.Function;
});
Expand Down Expand Up @@ -294,13 +298,15 @@ describe('console', function () {
console.dirxml('dirxml'); // stdout
console.warn('warn'); // stderr
console.error('error'); // stderr
console.trace('trace'); // stderr
stdout.logs.length.should.eql(3);
stdout.logs[0].should.eql('log');
stdout.logs[1].should.eql('info');
stdout.logs[2].should.eql('dirxml');
stderr.logs.length.should.eql(2);
stderr.logs[0].should.eql('warn');
stderr.logs[1].should.eql('error');
stderr.logs[1].should.eql('trace');
});

it('squashes sync errors on stdout write by default (ignoreErrors = true)', () => {
Expand Down

0 comments on commit af20d17

Please sign in to comment.