Browse Source

test: replace common.fixturesDir with fixtures.

Replaces the use of `common.fixturesDir` with the generic `fixtures`
mechanism.

PR-URL: https://github.com/nodejs/node/pull/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>
v9.x-staging
Sam Skjonsberg 7 years ago
committed by Rich Trott
parent
commit
eb08e3e5fb
  1. 3
      test/parallel/test-fs-write-stream-encoding.js

3
test/parallel/test-fs-write-stream-encoding.js

@ -1,13 +1,14 @@
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');
const assert = require('assert'); const assert = require('assert');
const fixtures = require('../common/fixtures');
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');
const stream = require('stream'); const stream = require('stream');
const firstEncoding = 'base64'; const firstEncoding = 'base64';
const secondEncoding = 'latin1'; 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'); const dummyPath = path.join(common.tmpDir, 'x.txt');
common.refreshTmpDir(); common.refreshTmpDir();

Loading…
Cancel
Save