diff --git a/test/parallel/test-internal-modules.js b/test/parallel/test-internal-modules.js index ea300d5c5fb85c..2f11ca18dd6b34 100644 --- a/test/parallel/test-internal-modules.js +++ b/test/parallel/test-internal-modules.js @@ -1,11 +1,11 @@ 'use strict'; -var common = require('../common'); -var path = require('path'); -var assert = require('assert'); +const common = require('../common'); +const path = require('path'); +const assert = require('assert'); assert.throws(function() { require('internal/freelist'); -}); +}, /^Error: Cannot find module 'internal\/freelist'$/); assert.strictEqual( require(path.join(common.fixturesDir, 'internal-modules')),