| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 10a497c commit 32b264c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -291,7 +291,8 @@ assert.notStrictEqual = function notStrictEqual(actual, expected, message) { | |||
| 291 | 291 | }; | |
| 292 | 292 | ||
| 293 | 293 | function expectedException(actual, expected) { | |
| 294 | - if (!actual || !expected) { | ||
| 294 | + // actual is guaranteed to be an Error object, but we need to check expected. | ||
| 295 | + if (!expected) { | ||
| 295 | 296 | return false; | |
| 296 | 297 | } | |
| 297 | 298 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments