mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 22:11:41 +00:00

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>
7 lines
209 B
JavaScript
7 lines
209 B
JavaScript
/* eslint-disable required-modules */
|
|
|
|
import assert from 'assert';
|
|
import binding from './build/binding.node';
|
|
assert.strictEqual(binding.hello(), 'world');
|
|
console.log('binding.hello() =', binding.hello());
|