| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 412f380 commit 3e9ce77
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ assert.doesNotThrow(function() { | |||
| 22 | 22 | }); | |
| 23 | 23 | ||
| 24 | 24 | // an Object with a custom .inspect() function | |
| 25 | - const custom_inspect = { foo: 'bar', inspect: () => { return 'inspect'; } }; | ||
| 25 | + const custom_inspect = { foo: 'bar', inspect: () => 'inspect' }; | ||
| 26 | 26 | ||
| 27 | 27 | const stdout_write = global.process.stdout.write; | |
| 28 | 28 | const stderr_write = global.process.stderr.write; | |
@@ -130,7 +130,7 @@ assert.strictEqual(errStrings.length, 0); | |||
| 130 | 130 | ||
| 131 | 131 | assert.throws(() => { | |
| 132 | 132 | console.assert(false, 'should throw'); | |
| 133 | - }, /should throw/); | ||
| 133 | + }, /^AssertionError: should throw$/); | ||
| 134 | 134 | ||
| 135 | 135 | assert.doesNotThrow(() => { | |
| 136 | 136 | console.assert(true, 'this should not throw'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments