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 1f380d1 commit 4227327Copy full SHA for 4227327
test/parallel/test-assert-async.js
@@ -103,8 +103,9 @@ const invalidThenableFunc = () => {
103
promises.push(assert.rejects(promise, {
104
name: 'TypeError',
105
code: 'ERR_INVALID_RETURN_VALUE',
106
+ // FIXME: This should use substring matching for key words, like /Promise/ and /undefined/
107
message: 'Expected instance of Promise to be returned ' +
- 'from the "promiseFn" function but got type undefined.'
108
+ 'from the "promiseFn" function but got undefined.'
109
}));
110
111
promise = assert.rejects(Promise.resolve(), common.mustNotCall());
0 commit comments