mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
PR-URL: https://github.com/nodejs/node/pull/60142 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
14 lines
459 B
JavaScript
14 lines
459 B
JavaScript
'use strict';
|
|
const common = require('../../common');
|
|
const path = require('path');
|
|
const assert = require('assert');
|
|
|
|
// This is a subtest of symlinked-module/test.js. This is not
|
|
// intended to be run directly.
|
|
|
|
module.exports.test = common.mustCall(function test(bindingDir) {
|
|
const mod = require(path.join(bindingDir, 'binding.node'));
|
|
assert.notStrictEqual(mod, null);
|
|
assert.strictEqual(mod.hello(), 'world');
|
|
}, require.main === module ? 0 : 2);
|