Skip to content

Commit

Permalink
Add: test for console.trace
Browse files Browse the repository at this point in the history
  • Loading branch information
legraphista committed Apr 4, 2019
1 parent 4da4100 commit 2515a8f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test.js
Expand Up @@ -622,3 +622,13 @@ it('handleUncaughtExceptions is true with existing listener', function(done) {
done();
});
});

it('normal console.trace', function(done) {
compareStdout(done, createMultiLineSourceMap(), [
'require("./source-map-support").install();',
'console.trace("test");'
], [
'Trace: test',
/^ at Object\.<anonymous> \((?:.*[/\\])?line2\.js:1002:102\)$/
]);
});

0 comments on commit 2515a8f

Please sign in to comment.