From d2b74fe1e3c0936f85046dd7947da804516a0db1 Mon Sep 17 00:00:00 2001 From: Christopher Sidebottom Date: Fri, 6 Oct 2017 09:53:34 -0700 Subject: [PATCH] test: switch to fixtures module In test-file-read-noexist, switch from common.fixturesDir to the fixtures module. PR-URL: https://github.com/nodejs/node/pull/15880 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- test/parallel/test-file-read-noexist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-file-read-noexist.js b/test/parallel/test-file-read-noexist.js index 423c62dfd54c0f..8845c2009e66c1 100644 --- a/test/parallel/test-file-read-noexist.js +++ b/test/parallel/test-file-read-noexist.js @@ -1,10 +1,10 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); -const path = require('path'); const fs = require('fs'); -const filename = path.join(common.fixturesDir, 'does_not_exist.txt'); +const filename = fixtures.path('does_not_exist.txt'); fs.readFile(filename, 'latin1', common.mustCall(function(err, content) { assert.ok(err); assert.strictEqual(err.code, 'ENOENT');