Skip to content

Commit 35765c7

Browse files
committed
Cleanup existing code
1 parent 4d6413f commit 35765c7

File tree

1 file changed

+5
-5
lines changed
  • commonjs-extension-resolution-loader

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { ok } from 'assert';
1+
import { match } from 'assert';
22
import { spawn } from 'child_process';
33
import { execPath } from 'process';
44

55

66
// Run this test yourself with debugging mode via:
7-
// node --inspect-brk --experimental-loader ./loader.js ./fixtures/index.js
7+
// node --inspect-brk --loader ./loader.js ./fixtures/index.js
88

99
const child = spawn(execPath, [
10-
'--experimental-loader',
10+
'--loader',
1111
'./loader.js',
1212
'./fixtures/index.js'
1313
]);
@@ -20,6 +20,6 @@ child.stdout.on('data', (data) => {
2020

2121
child.on('close', (code, signal) => {
2222
stdout = stdout.toString();
23-
ok(stdout.includes('hello from file.js'));
24-
ok(stdout.includes('hello from folder/index.js'));
23+
match(stdout, /hello from file\.js/);
24+
match(stdout, /hello from folder\/index\.js/);
2525
});

0 commit comments

Comments
 (0)