Skip to content

Commit 7923100

Browse files
BinarySo1oaddaleax
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: nodejs/node#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 b5588d6 commit 7923100

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
@@ -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)