Skip to content

Commit

Permalink
test: remove dead code
Browse files Browse the repository at this point in the history
This is not used by the test anymore.

PR-URL: nodejs#25009
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
BridgeAR authored and refack committed Jan 10, 2019
1 parent 7d18ac1 commit b87c46a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/es-module/test-esm-dynamic-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const common = require('../common');
const assert = require('assert');
const { URL } = require('url');
const vm = require('vm');

const relativePath = '../fixtures/es-modules/test-esm-ok.mjs';
const absolutePath = require.resolve('../fixtures/es-modules/test-esm-ok.mjs');
Expand All @@ -21,23 +20,6 @@ function expectMissingModuleError(result) {
expectErrorProperty(result, 'code', 'MODULE_NOT_FOUND');
}

function expectInvalidUrlError(result) {
expectErrorProperty(result, 'code', 'ERR_INVALID_URL');
}

function expectInvalidReferrerError(result) {
expectErrorProperty(result, 'code', 'ERR_INVALID_URL');
}

function expectInvalidProtocolError(result) {
expectErrorProperty(result, 'code', 'ERR_INVALID_PROTOCOL');
}

function expectInvalidContextError(result) {
expectErrorProperty(result,
'message', 'import() called outside of main context');
}

function expectOkNamespace(result) {
Promise.resolve(result)
.then(common.mustCall(ns => {
Expand Down

0 comments on commit b87c46a

Please sign in to comment.