| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b90a141 commit 460a3e1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -358,7 +358,8 @@ try { | |||
| 358 | 358 | assert.equal(true, threw, | |
| 359 | 359 | 'a.doesNotThrow is not catching type matching errors'); | |
| 360 | 360 | ||
| 361 | - assert.throws(function() { assert.ifError(new Error('test error')); }); | ||
| 361 | + assert.throws(function() { assert.ifError(new Error('test error')); }, | ||
| 362 | + /^Error: test error$/); | ||
| 362 | 363 | assert.doesNotThrow(function() { assert.ifError(null); }); | |
| 363 | 364 | assert.doesNotThrow(function() { assert.ifError(); }); | |
| 364 | 365 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments