Skip to content

Commit

Permalink
test: use of fixtures in test-pipe-head
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nchaulet authored and MylesBorins committed Nov 28, 2017
1 parent 281023b commit 44a60c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-pipe-head.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');

const exec = require('child_process').exec;
const join = require('path').join;

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

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

Expand Down

0 comments on commit 44a60c3

Please sign in to comment.