File tree Expand file tree Collapse file tree 5 files changed +57
-3
lines changed Expand file tree Collapse file tree 5 files changed +57
-3
lines changed Original file line number Diff line number Diff line change 22
33const test = require ( 'ava' )
44
5- const { repeatEvents, startLogging } = require ( './helpers' )
5+ const { repeatEvents, startLogging } = require ( '.. /helpers' )
66
77repeatEvents ( ( prefix , { emitEvent } ) => {
88 test ( `${ prefix } events emitters should exist` , t => {
Original file line number Diff line number Diff line change 22
33const test = require ( 'ava' )
44
5- const { repeat, startLogging, EVENTS } = require ( './helpers' )
5+ const { repeat, startLogging, EVENTS } = require ( '.. /helpers' )
66
77const EVENT_OBJECTS = [
88 {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const {
1212 stubStackTrace,
1313 unstubStackTrace,
1414 normalizeMessage,
15- } = require ( './helpers' )
15+ } = require ( '.. /helpers' )
1616
1717const addProcessHandler = function ( name ) {
1818 const processHandler = sinon . spy ( )
Original file line number Diff line number Diff line change 1+ # Snapshot report for ` test/main/init.js `
2+
3+ The actual snapshot is saved in ` init.js.snap ` .
4+
5+ Generated by [ AVA] ( https://ava.li ) .
6+
7+ ## [ multipleResolves] should work with no options
8+
9+ > Snapshot 1
10+
11+ [
12+ `i multipleResolves (a promise was resolved/rejected multiple times) Initially resolved with: { success: true }␊
13+ Then rejected with: Error: message␊
14+ at STACK TRACE`,
15+ ]
16+
17+ ## [ rejectionHandled] should work with no options
18+
19+ > Snapshot 1
20+
21+ [
22+ `× unhandledRejection (a promise was rejected but not handled) Error: message␊
23+ at STACK TRACE`,
24+ `× rejectionHandled (a promise was rejected and handled too late) Error: message␊
25+ at STACK TRACE`,
26+ ]
27+
28+ ## [ uncaughtException] should work with no options
29+
30+ > Snapshot 1
31+
32+ [
33+ `× uncaughtException (an exception was thrown but not caught) Error: message␊
34+ at STACK TRACE`,
35+ ]
36+
37+ ## [ unhandledRejection] should work with no options
38+
39+ > Snapshot 1
40+
41+ [
42+ `× unhandledRejection (a promise was rejected but not handled) Error: message␊
43+ at STACK TRACE`,
44+ ]
45+
46+ ## [ warning] should work with no options
47+
48+ > Snapshot 1
49+
50+ [
51+ `‼ warning (500) Detail␊
52+ Error: message␊
53+ at STACK TRACE`,
54+ ]
You can’t perform that action at this time.
0 commit comments