Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d68bdb

Browse filesBrowse files
jasnellMyles Borins
authored andcommitted
test: fix error message checks in test-module-loading
PR-URL: #5986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent c98aaf5 commit 1d68bdb
Copy full SHA for 1d68bdb

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/sequential/test-module-loading.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-module-loading.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ assert.deepEqual(children, {
251251
assert.throws(function() {
252252
console.error('require non-string');
253253
require({ foo: 'bar' });
254-
}, 'path must be a string');
254+
}, /path must be a string/);
255255

256256
assert.throws(function() {
257257
console.error('require empty string');
258258
require('');
259-
}, 'missing path');
259+
}, /missing path/);
260260

261261
process.on('exit', function() {
262262
assert.ok(a.A instanceof Function);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.