Skip to content

Commit ddca9ed

Browse files
committed
[Tests] ensure node_path test is independent of the tap module’s “main”
1 parent 6984dcb commit ddca9ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/node_path.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ test('$NODE_PATH', function (t) {
4343
],
4444
basedir: 'node_path/x'
4545
}, function (err, res) {
46-
t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap/lib/main.js'));
46+
var root = require('tap/package.json').main;
47+
t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap', root));
4748
});
4849
});

0 commit comments

Comments
 (0)