From 152bf22d02e6626a00444dd0c475f4457c006c44 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 8ffbdeb2d14..7293113f22a 100644 --- a/test/parallel/test-file-read-noexist.js +++ b/test/parallel/test-file-read-noexist.js @@ -21,11 +21,11 @@ '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');