From 5b931d7a932c04783e2a2ab08720c138bb0f95e4 Mon Sep 17 00:00:00 2001 From: Sam Skjonsberg Date: Fri, 6 Oct 2017 09:23:23 -0700 Subject: [PATCH] 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 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- test/parallel/test-fs-write-stream-encoding.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-fs-write-stream-encoding.js b/test/parallel/test-fs-write-stream-encoding.js index 3ce47b73829b53..5fb810887721d9 100644 --- a/test/parallel/test-fs-write-stream-encoding.js +++ b/test/parallel/test-fs-write-stream-encoding.js @@ -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();