diff options
author | dave-k <davek1802@gmail.com> | 2017-03-30 11:41:38 -0700 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-07 16:22:55 +0300 |
commit | 943d0853076437896963975d039e7786e5f74192 (patch) | |
tree | dfb601d7a83e5a7bc00d226e6922fe2b58f95e45 | |
parent | a94a5da78c6fdecf1aef541db237a1c96a9801a3 (diff) | |
download | android-node-v8-943d0853076437896963975d039e7786e5f74192.tar.gz android-node-v8-943d0853076437896963975d039e7786e5f74192.tar.bz2 android-node-v8-943d0853076437896963975d039e7786e5f74192.zip |
test: add a second argument to assert.throws()
- a regular expression that matches the entire error message.
PR-URL: https://github.com/nodejs/node/pull/12139
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
-rw-r--r-- | test/addons/make-callback-recurse/test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/addons/make-callback-recurse/test.js b/test/addons/make-callback-recurse/test.js index 46b1327d7d..895769bc33 100644 --- a/test/addons/make-callback-recurse/test.js +++ b/test/addons/make-callback-recurse/test.js @@ -15,7 +15,7 @@ assert.throws(function() { makeCallback({}, function() { throw new Error('hi from domain error'); }); -}); +}, /^Error: hi from domain error$/); // Check the execution order of the nextTickQueue and MicrotaskQueue in |