Skip to content

Commit ef2feb2

Browse files
vivek958aduh95
andauthored
Update test/parallel/test-esm-loader-null-source.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 2a3ae61 commit ef2feb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-esm-loader-null-source.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ const fixtures = require('../common/fixtures');
4141
const output = result.stdout + result.stderr;
4242

4343
// Verify test passed
44-
assert.ok(
45-
output.includes('PASS: Got expected error'),
46-
'Should pass with expected error. Output: ' + output
44+
assert.match(
45+
output,
46+
/PASS: Got expected error/,
4747
);
4848

4949
assert.strictEqual(

0 commit comments

Comments
 (0)