Skip to content

Commit e61fa9a

Browse files
christysunnydaysTrott
authored andcommitted
test: es6 modification and include error msg
1 parent 9cfecce commit e61fa9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-internal-modules.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
2-
var common = require('../common');
3-
var path = require('path');
4-
var assert = require('assert');
2+
const common = require('../common');
3+
const path = require('path');
4+
const assert = require('assert');
55

66
assert.throws(function() {
77
require('internal/freelist');
8-
});
8+
}, /^Error: Cannot find module 'internal\/freelist'$/);
99

1010
assert.strictEqual(
1111
require(path.join(common.fixturesDir, 'internal-modules')),

0 commit comments

Comments
 (0)