summaryrefslogtreecommitdiff
path: root/test/es-module
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-10-12 22:02:59 -0700
committerRich Trott <rtrott@gmail.com>2017-10-13 10:50:02 -0700
commit981595c316d254f359786f659dba004244cf7cd5 (patch)
tree0f229360bb1334fffe77c28d2bdc581e8ab6203d /test/es-module
parent9f1e6e79ead42ef2bdc395898f2e1fc8b215ebf6 (diff)
downloadandroid-node-v8-981595c316d254f359786f659dba004244cf7cd5.tar.gz
android-node-v8-981595c316d254f359786f659dba004244cf7cd5.tar.bz2
android-node-v8-981595c316d254f359786f659dba004244cf7cd5.zip
test: fix test-esm-addons
Move test-esm-addons to test/addons/hello-world-esm. Test should now work properly on CI machines where `addons` are not always built at the expected relative path from the es-modules tests. Test should now work in Debug builds. PR-URL: https://github.com/nodejs/node/pull/16174 Fixes: https://github.com/nodejs/node/issues/16155 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'test/es-module')
-rw-r--r--test/es-module/test-esm-addon.mjs7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/es-module/test-esm-addon.mjs b/test/es-module/test-esm-addon.mjs
deleted file mode 100644
index 90ed9ffa50..0000000000
--- a/test/es-module/test-esm-addon.mjs
+++ /dev/null
@@ -1,7 +0,0 @@
-// Flags: --experimental-modules
-/* eslint-disable required-modules */
-
-import assert from 'assert';
-import binding from '../addons/hello-world/build/Release/binding.node';
-assert.strictEqual(binding.hello(), 'world');
-console.log('binding.hello() =', binding.hello());