Skip to content

Commit 9d29f0c

Browse files
committed
Fix failing symbol rejection test.
Now checks correctly that Symbol() is outputted when rejection happens.
1 parent bf06851 commit 9d29f0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/parallel/test-promises-unhandled-symbol-rejections.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
const common = require('../common');
33

4+
const expectedValueWarning = 'Symbol()';
45
const expectedDeprecationWarning = 'Unhandled promise rejections are ' +
56
'deprecated. In the future, promise ' +
67
'rejections that are not handled will ' +
@@ -14,7 +15,10 @@ const expectedPromiseWarning = 'Unhandled promise rejection. ' +
1415

1516
common.expectWarning({
1617
DeprecationWarning: expectedDeprecationWarning,
17-
UnhandledPromiseRejectionWarning: expectedPromiseWarning,
18+
UnhandledPromiseRejectionWarning: [
19+
expectedPromiseWarning,
20+
expectedValueWarning
21+
],
1822
});
1923

2024
// ensure this doesn't crash

0 commit comments

Comments
 (0)