Skip to content

Commit 44a60c3

Browse files
nchauletMylesBorins
authored andcommitted
test: use of fixtures in test-pipe-head
Replace usage of common.fixturesDir by using common.fixtures module in test/parallel/test-pipe-head PR-URL: #15868 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 281023b commit 44a60c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-pipe-head.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
const assert = require('assert');
45

56
const exec = require('child_process').exec;
6-
const join = require('path').join;
77

88
const nodePath = process.argv[0];
9-
const script = join(common.fixturesDir, 'print-10-lines.js');
9+
const script = fixtures.path('print-10-lines.js');
1010

1111
const cmd = `"${nodePath}" "${script}" | head -2`;
1212

0 commit comments

Comments
 (0)