Skip to content

Commit 3028913

Browse files
committed
Update test snapshots
1 parent c0b5252 commit 3028913

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

test/helpers/normalize.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ 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
46+
// Default Node.js warnings <12 look different (no `code`, no `detail`)
47+
// TODO: remove when Node.js <12 is not supported anymore
4848
[/(\(node:PID\)) \[[^\]]+\](.*)\n.*/gu, '$1$2'],
4949
// File paths
5050
[/[^ (]+\/[^ )]+/gu, ''],
@@ -53,9 +53,8 @@ const REPLACEMENTS = [
5353
[/ \([\d.]+m?s\)/gu, ''],
5454
// - Jasmine
5555
[/[\d.]+ seconds?/gu, ''],
56-
// - Jasmine, Node 10 only (not Node 8 nor 12)
57-
[/\n\nSuite error: undefined/gu, ''],
5856
// - Jasmine, Node <12.5.0 only
57+
[/\n\nSuite error: undefined/gu, ''],
5958
[
6059
/ +Message:\n +Uncaught exception: RejectionHandled: a promise was rejected and handled too late: Error: message\n +Stack:\n +at STACK TRACE\n/gu,
6160
'',
-5 Bytes
Binary file not shown.

test/snapshots/register.js.snap

9 Bytes
Binary file not shown.

test/snapshots/warnings.js.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ Generated by [AVA](https://ava.li).
1515

1616
> Snapshot 1
1717
18-
`(node:PID) [500] WarningType: message␊
19-
Detail`
18+
'(node:PID) WarningType: message'
2019

2120
## should work with warnings-related CLI flags | multipleResolves "--no-warnings"
2221

test/snapshots/warnings.js.snap

-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)