Skip to content

Commit

Permalink
Fix failing symbol rejection test.
Browse files Browse the repository at this point in the history
Now checks correctly that Symbol() is outputted when rejection happens.
  • Loading branch information
MadaraUchiha committed Nov 21, 2017
1 parent bf06851 commit 9d29f0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/parallel/test-promises-unhandled-symbol-rejections.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const common = require('../common');

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

common.expectWarning({
DeprecationWarning: expectedDeprecationWarning,
UnhandledPromiseRejectionWarning: expectedPromiseWarning,
UnhandledPromiseRejectionWarning: [
expectedPromiseWarning,
expectedValueWarning
],
});

// ensure this doesn't crash
Expand Down

0 comments on commit 9d29f0c

Please sign in to comment.