We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a6091 commit 49e7029Copy full SHA for 49e7029
test/parallel/test-internal-modules.js
@@ -1,11 +1,11 @@
1
'use strict';
2
-var common = require('../common');
3
-var path = require('path');
4
-var assert = require('assert');
+const common = require('../common');
+const path = require('path');
+const assert = require('assert');
5
6
assert.throws(function() {
7
require('internal/freelist');
8
-});
+}, /^Error: Cannot find module 'internal\/freelist'$/);
9
10
assert.strictEqual(
11
require(path.join(common.fixturesDir, 'internal-modules')),
0 commit comments