8000
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 2ad9faa commit 9349f08Copy full SHA for 9349f08
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