| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2f09ee7 commit 806bc0d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,9 +97,10 @@ function expectBody(expected) { | |||
| 97 | 97 | ||
| 98 | 98 | parser.reinitialize(HTTPParser.REQUEST); | |
| 99 | 99 | ||
| 100 | - assert.throws(function() { | ||
| 101 | - parser.execute(request, 0, request.length); | ||
| 102 | - }, Error, 'hello world'); | ||
| 100 | + assert.throws( | ||
| 101 | + () => { parser.execute(request, 0, request.length); }, | ||
| 102 | + { name: 'Error', message: 'hello world' } | ||
| 103 | + ); | ||
| 103 | 104 | } | |
| 104 | 105 | ||
| 105 | 106 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments