Skip to content

Commit 9edd18b

Browse files
committed
Simplify test after Node.js 10 support update
1 parent 8e07ca2 commit 9edd18b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/helpers/normalize.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,15 @@ const REPLACEMENTS = [
4343
[/(([ \t]+)at STACK TRACE(\r?\n)?)+/gu, '$2at STACK TRACE$3'],
4444
// Default Node.js warnings show PID, which we remove
4545
[/\(node:\d+\)/gu, '(node:PID)'],
46-
// Default Node.js warnings <10 look different (no `code`, no `detail`)
47-
// TODO: remove when Node.js <10 is not supported anymore
48-
[/(\(node:PID\)) \[[^\]]+\](.*)\n.*/gu, '$1$2'],
4946
// File paths
5047
[/[^ (]+\/[^ )]+/gu, ''],
5148
// Durations in test runners:
5249
// - Mocha, node-tap `classic` reporter
5350
[/ \([\d.]+m?s\)/gu, ''],
5451
// - Jasmine
5552
[/[\d.]+ seconds?/gu, ''],
56-
// - Jasmine, Node 10 only (not Node 8 nor 12)
57-
[/\n\nSuite error: undefined/gu, ''],
5853
// - Jasmine, Node <12.5.0 only
54+
[/\n\nSuite error: undefined/gu, ''],
5955
[
6056
/ +Message:\n +Uncaught exception: RejectionHandled: a promise was rejected and handled too late: Error: message\n +Stack:\n +at STACK TRACE\n/gu,
6157
'',

0 commit comments

Comments
 (0)