| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 269f513 commit 7e516aa
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,4 +29,4 @@ const child = spawnSync(process.execPath, [ | |||
| 29 | 29 | '--expose-gc', __filename, 'child', | |
| 30 | 30 | ]); | |
| 31 | 31 | assert.strictEqual(child.signal, null); | |
| 32 | - assert.match(child.stderr.toString(), /Error during Finalize/m); | ||
| 32 | + assert.match(child.stderr.toString(), /Error during Finalize/); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ async function testSimple() { | |||
| 39 | 39 | expectedLines.pop(); | |
| 40 | 40 | } | |
| 41 | 41 | assert.deepStrictEqual(iteratedLines, expectedLines); | |
| 42 | - assert.strictEqual(iteratedLines.join(''), fileContent.replace(/\n/gm, '')); | ||
| 42 | + assert.strictEqual(iteratedLines.join(''), fileContent.replace(/\n/g, '')); | ||
| 43 | 43 | } | |
| 44 | 44 | } | |
| 45 | 45 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,14 +97,14 @@ if (process.argv[2] === 'child') { | |||
| 97 | 97 | ||
| 98 | 98 | // Test libuv handle key order | |
| 99 | 99 | { | |
| 100 | - const get_libuv = /"libuv":\s\[([\s\S]*?)\]/gm; | ||
| 101 | - const get_handle_inner = /{([\s\S]*?),*?}/gm; | ||
| 100 | + const get_libuv = /"libuv":\s\[([\s\S]*?)\]/g; | ||
| 101 | + const get_handle_inner = /{([\s\S]*?),*?}/g; | ||
| 102 | 102 | const libuv_handles_str = get_libuv.exec(stdout)[1]; | |
| 103 | 103 | const libuv_handles_array = libuv_handles_str.match(get_handle_inner); | |
| 104 | 104 | for (const i of libuv_handles_array) { | |
| 105 | 105 | // Exclude nested structure | |
| 106 | 106 | if (i.includes('type')) { | |
| 107 | - const handle_keys = i.match(/(".*"):/gm); | ||
| 107 | + const handle_keys = i.match(/(".*"):/g); | ||
| 108 | 108 | assert(handle_keys[0], 'type'); | |
| 109 | 109 | assert(handle_keys[1], 'is_active'); | |
| 110 | 110 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments