Skip to content

Commit f7a4d8a

Browse files
committed
Remove one test
1 parent 53cfd7f commit f7a4d8a

File tree

5 files changed

+0
-69
lines changed

5 files changed

+0
-69
lines changed
17 Bytes
Binary file not shown.

test/snapshots/register.js.snap

5 Bytes
Binary file not shown.

test/snapshots/warnings.js.md

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,6 @@ Generated by [AVA](https://ava.li).
4545

4646
## should work with warnings-related CLI flags | multipleResolves "--unhandled-rejections=strict"
4747

48-
> Snapshot 1
49-
50-
{
51-
exitCode: 0,
52-
stderr: '',
53-
stdout: `i multipleResolves (a promise was multiple times) ␊
54-
Initially resolved with: { success: true }␊
55-
Then rejected with: Error: message␊
56-
at STACK TRACE`,
57-
}
58-
59-
## should work with warnings-related CLI flags | multipleResolves "--unhandled-rejections=warn"
60-
6148
> Snapshot 1
6249
6350
{
@@ -110,23 +97,6 @@ Generated by [AVA](https://ava.li).
11097
stdout: '',
11198
}
11299

113-
## should work with warnings-related CLI flags | rejectionHandled "--unhandled-rejections=warn"
114-
115-
> Snapshot 1
116-
117-
{
118-
exitCode: 0,
119-
stderr: `× unhandledRejection (a promise was rejected but not handled) Error: message␊
120-
at STACK TRACE␊
121-
‼ warning (UnhandledPromiseRejectionWarning) Error: message␊
122-
at STACK TRACE␊
123-
‼ warning (UnhandledPromiseRejectionWarning) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)␊
124-
at STACK TRACE␊
125-
× rejectionHandled (a promise was rejected and handled too late) Error: message␊
126-
at STACK TRACE`,
127-
stdout: '',
128-
}
129-
130100
## should work with warnings-related CLI flags | uncaughtException "--no-warnings"
131101

132102
> Snapshot 1
@@ -151,17 +121,6 @@ Generated by [AVA](https://ava.li).
151121

152122
## should work with warnings-related CLI flags | uncaughtException "--unhandled-rejections=strict"
153123

154-
> Snapshot 1
155-
156-
{
157-
exitCode: 1,
158-
stderr: `× uncaughtException (an exception was thrown but not caught) Error: message␊
159-
at STACK TRACE`,
160-
stdout: '',
161-
}
162-
163-
## should work with warnings-related CLI flags | uncaughtException "--unhandled-rejections=warn"
164-
165124
> Snapshot 1
166125
167126
{
@@ -206,21 +165,6 @@ Generated by [AVA](https://ava.li).
206165
stdout: '',
207166
}
208167

209-
## should work with warnings-related CLI flags | unhandledRejection "--unhandled-rejections=warn"
210-
211-
> Snapshot 1
212-
213-
{
214-
exitCode: 0,
215-
stderr: `× unhandledRejection (a promise was rejected but not handled) Error: message␊
216-
at STACK TRACE␊
217-
‼ warning (UnhandledPromiseRejectionWarning) Error: message␊
218-
at STACK TRACE␊
219-
‼ warning (UnhandledPromiseRejectionWarning) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)␊
220-
at STACK TRACE`,
221-
stdout: '',
222-
}
223-
224168
## should work with warnings-related CLI flags | warning "--no-warnings"
225169

226170
> Snapshot 1
@@ -256,15 +200,3 @@ Generated by [AVA](https://ava.li).
256200
at STACK TRACE`,
257201
stdout: '',
258202
}
259-
260-
## should work with warnings-related CLI flags | warning "--unhandled-rejections=warn"
261-
262-
> Snapshot 1
263-
264-
{
265-
exitCode: 0,
266-
stderr: `‼ warning (WarningType) message␊
267-
[500] Detail␊
268-
at STACK TRACE`,
269-
stdout: '',
270-
}

test/snapshots/warnings.js.snap

-278 Bytes
Binary file not shown.

test/warnings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ testEach(
6262
[
6363
'--no-warnings',
6464
'--unhandled-rejections=none',
65-
'--unhandled-rejections=warn',
6665
'--unhandled-rejections=strict',
6766
],
6867
({ title }, { eventName }, flag) => {

0 commit comments

Comments
 (0)