From aaefe424cdbc271924cb3237b170bfb9dedcc735 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Fri, 8 Sep 2017 10:02:36 -0700 Subject: [PATCH] test: missing fixture test-esm-pkg-over-ext.mjs Added package.json fixture for test-esm-pkg-over-ext.mjs. Modified import in test to load inner/package --- test/es-module/test-esm-pkg-over-ext.mjs | 2 +- test/fixtures/module-pkg-over-ext/inner/package.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/module-pkg-over-ext/inner/package.json diff --git a/test/es-module/test-esm-pkg-over-ext.mjs b/test/es-module/test-esm-pkg-over-ext.mjs index 7e47c4c326942f..8011a3bbb13401 100644 --- a/test/es-module/test-esm-pkg-over-ext.mjs +++ b/test/es-module/test-esm-pkg-over-ext.mjs @@ -1,7 +1,7 @@ // Flags: --experimental-modules /* eslint-disable required-modules */ -import resolved from '../fixtures/module-pkg-over-ext/inner'; +import resolved from '../fixtures/module-pkg-over-ext/inner/package'; import expected from '../fixtures/module-pkg-over-ext/inner/package.json'; import assert from 'assert'; diff --git a/test/fixtures/module-pkg-over-ext/inner/package.json b/test/fixtures/module-pkg-over-ext/inner/package.json new file mode 100644 index 00000000000000..6d247b8ed168ba --- /dev/null +++ b/test/fixtures/module-pkg-over-ext/inner/package.json @@ -0,0 +1,4 @@ +{ + "name": "foo", + "bin": "node bar.js" +}