summaryrefslogtreecommitdiff
path: root/test/parallel/test-file-read-noexist.js
diff options
context:
space:
mode:
authorChristopher Sidebottom <chris@damouse.co.uk>2017-10-06 09:53:34 -0700
committerRich Trott <rtrott@gmail.com>2017-10-10 21:47:28 -0700
commit152bf22d02e6626a00444dd0c475f4457c006c44 (patch)
tree960ef99a2a6f4cba4266952991b5d380d81a8dff /test/parallel/test-file-read-noexist.js
parentadbc5d7d57c17a8eb7ce69ad763394ade55202c3 (diff)
downloadnode-new-152bf22d02e6626a00444dd0c475f4457c006c44.tar.gz
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 <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-file-read-noexist.js')
-rw-r--r--test/parallel/test-file-read-noexist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-file-read-noexist.js b/test/parallel/test-file-read-noexist.js
index 8ffbdeb2d1..7293113f22 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');