Skip to content

Commit ece6cd1

Browse files
BinarySo1oMylesBorins
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: #15961 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent d1bb608 commit ece6cd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-npm-install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const path = require('path');
77
const exec = require('child_process').exec;
88
const assert = require('assert');
99
const fs = require('fs');
10+
const fixtures = require('../common/fixtures');
1011

1112
common.refreshTmpDir();
1213
const npmSandbox = path.join(common.tmpDir, 'npm-sandbox');
@@ -26,7 +27,7 @@ const npmPath = path.join(
2627

2728
const pkgContent = JSON.stringify({
2829
dependencies: {
29-
'package-name': `${common.fixturesDir}/packages/main`
30+
'package-name': fixtures.path('packages/main')
3031
}
3132
});
3233

0 commit comments

Comments
 (0)