Skip to content

Commit fd89d44

Browse files
committed
Move files
1 parent 0795273 commit fd89d44

File tree

5 files changed

+57
-3
lines changed

5 files changed

+57
-3
lines changed

test/emit.js renamed to test/main/emit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const test = require('ava')
44

5-
const { repeatEvents, startLogging } = require('./helpers')
5+
const { repeatEvents, startLogging } = require('../helpers')
66

77
repeatEvents((prefix, { emitEvent }) => {
88
test(`${prefix} events emitters should exist`, t => {

test/event.js renamed to test/main/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const test = require('ava')
44

5-
const { repeat, startLogging, EVENTS } = require('./helpers')
5+
const { repeat, startLogging, EVENTS } = require('../helpers')
66

77
const EVENT_OBJECTS = [
88
{

test/init.js renamed to test/main/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212
stubStackTrace,
1313
unstubStackTrace,
1414
normalizeMessage,
15-
} = require('./helpers')
15+
} = require('../helpers')
1616

1717
const addProcessHandler = function(name) {
1818
const processHandler = sinon.spy()

test/main/snapshots/init.js.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
]

test/main/snapshots/init.js.snap

520 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)