Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-internal-modules.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6bd0c9e14132837b7831c59bf85f11033f95606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');

assert.throws(function() {
  require('internal/freelist');
}, /^Error: Cannot find module 'internal\/freelist'/);

assert.strictEqual(
  require(fixtures.path('internal-modules')),
  42
);