We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf06851 commit 9d29f0cCopy full SHA for 9d29f0c
test/parallel/test-promises-unhandled-symbol-rejections.js
@@ -1,6 +1,7 @@
1
'use strict';
2
const common = require('../common');
3
4
+const expectedValueWarning = 'Symbol()';
5
const expectedDeprecationWarning = 'Unhandled promise rejections are ' +
6
'deprecated. In the future, promise ' +
7
'rejections that are not handled will ' +
@@ -14,7 +15,10 @@ const expectedPromiseWarning = 'Unhandled promise rejection. ' +
14
15
16
common.expectWarning({
17
DeprecationWarning: expectedDeprecationWarning,
- UnhandledPromiseRejectionWarning: expectedPromiseWarning,
18
+ UnhandledPromiseRejectionWarning: [
19
+ expectedPromiseWarning,
20
+ expectedValueWarning
21
+ ],
22
});
23
24
// ensure this doesn't crash
0 commit comments