Skip to content

Commit 81dad8c

Browse files
BinarySo1oMylesBorins
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: #15961 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent b7fd9c6 commit 81dad8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-npm-install.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const path = require('path');
55
const exec = require('child_process').exec;
66
const assert = require('assert');
77
const fs = require('fs');
8+
const fixtures = require('../common/fixtures');
89

910
common.refreshTmpDir();
1011
const npmSandbox = path.join(common.tmpDir, 'npm-sandbox');
@@ -24,7 +25,7 @@ const npmPath = path.join(
2425

2526
const pkgContent = JSON.stringify({
2627
dependencies: {
27-
'package-name': `${common.fixturesDir}/packages/main`
28+
'package-name': fixtures.path('packages/main')
2829
}
2930
});
3031

0 commit comments

Comments
 (0)