Skip to content

Commit

Permalink
test: replace common.fixturesDir with fixtures.
Browse files Browse the repository at this point in the history
Replaces the use of `common.fixturesDir` with the generic `fixtures`
mechanism.

PR-URL: #15802
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
codeviking authored and MylesBorins committed Nov 14, 2017
1 parent 2698f67 commit 5b931d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-fs-write-stream-encoding.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use strict';
const common = require('../common');
const assert = require('assert');
const fixtures = require('../common/fixtures');
const fs = require('fs');
const path = require('path');
const stream = require('stream');
const firstEncoding = 'base64';
const secondEncoding = 'latin1';

const examplePath = path.join(common.fixturesDir, 'x.txt');
const examplePath = fixtures.path('x.txt');
const dummyPath = path.join(common.tmpDir, 'x.txt');

common.refreshTmpDir();
Expand Down

0 comments on commit 5b931d7

Please sign in to comment.