| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,9 +97,11 @@ assert.throws(makeBlock(a.deepEqual, /a/m, /a/)); | |||
| 97 | 97 | assert.throws(makeBlock(a.deepEqual, /a/igm, /a/im)); | |
| 98 | 98 | ||
| 99 | 99 | { | |
| 100 | - const re1 = /a/; | ||
| 100 | + const re1 = /a/g; | ||
| 101 | 101 | re1.lastIndex = 3; | |
| 102 | - assert.throws(makeBlock(a.deepEqual, re1, /a/)); | ||
| 102 | + | ||
| 103 | + assert.throws(makeBlock(a.deepEqual, re1, /a/g), | ||
| 104 | + /^AssertionError: \/a\/g deepEqual \/a\/g$/); | ||
| 103 | 105 | } | |
| 104 | 106 | ||
| 105 | 107 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments