Skip to content

Commit 2515a8f

Browse files
authored
Add: test for console.trace
1 parent 4da4100 commit 2515a8f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,3 +622,13 @@ it('handleUncaughtExceptions is true with existing listener', function(done) {
622622
done();
623623
});
624624
});
625+
626+
it('normal console.trace', function(done) {
627+
compareStdout(done, createMultiLineSourceMap(), [
628+
'require("./source-map-support").install();',
629+
'console.trace("test");'
630+
], [
631+
'Trace: test',
632+
/^ at Object\.<anonymous> \((?:.*[/\\])?line2\.js:1002:102\)$/
633+
]);
634+
});

0 commit comments

Comments
 (0)