summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-persistent-history.js
diff options
context:
space:
mode:
authorJenna Zeigen <jenna.zeigen@gmail.com>2017-10-06 11:28:03 -0700
committerJames M Snell <jasnell@gmail.com>2017-10-15 21:49:01 -0700
commit70896c7e3b97cac03b645a5c450a617131e5b4eb (patch)
tree18f80fb17342e35172e359f5259eccba07febb03 /test/parallel/test-repl-persistent-history.js
parent0ce6be07dadc3e8b3d761d1e3128c68a5f70ed0a (diff)
downloadandroid-node-v8-70896c7e3b97cac03b645a5c450a617131e5b4eb.tar.gz
android-node-v8-70896c7e3b97cac03b645a5c450a617131e5b4eb.tar.bz2
android-node-v8-70896c7e3b97cac03b645a5c450a617131e5b4eb.zip
test: fixtures in repl persistent history test
PR-URL: https://github.com/nodejs/node/pull/15999 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Lance Ball <lball@redhat.com>
Diffstat (limited to 'test/parallel/test-repl-persistent-history.js')
-rw-r--r--test/parallel/test-repl-persistent-history.js19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/parallel/test-repl-persistent-history.js b/test/parallel/test-repl-persistent-history.js
index c4bfdac606..3ba71f1f17 100644
--- a/test/parallel/test-repl-persistent-history.js
+++ b/test/parallel/test-repl-persistent-history.js
@@ -3,6 +3,7 @@
// Flags: --expose-internals
const common = require('../common');
+const fixtures = require('../common/fixtures');
const stream = require('stream');
const REPL = require('internal/repl');
const assert = require('assert');
@@ -53,20 +54,16 @@ const ENTER = { name: 'enter' };
const CLEAR = { ctrl: true, name: 'u' };
// File paths
-const fixtures = common.fixturesDir;
-const historyFixturePath = path.join(fixtures, '.node_repl_history');
+const historyFixturePath = fixtures.path('.node_repl_history');
const historyPath = path.join(common.tmpDir, '.fixture_copy_repl_history');
const historyPathFail = path.join(common.tmpDir, '.node_repl\u0000_history');
-const oldHistoryPathObj = path.join(fixtures,
- 'old-repl-history-file-obj.json');
-const oldHistoryPathFaulty = path.join(fixtures,
- 'old-repl-history-file-faulty.json');
-const oldHistoryPath = path.join(fixtures, 'old-repl-history-file.json');
-const enoentHistoryPath = path.join(fixtures, 'enoent-repl-history-file.json');
-const emptyHistoryPath = path.join(fixtures, '.empty-repl-history-file');
+const oldHistoryPathObj = fixtures.path('old-repl-history-file-obj.json');
+const oldHistoryPathFaulty = fixtures.path('old-repl-history-file-faulty.json');
+const oldHistoryPath = fixtures.path('old-repl-history-file.json');
+const enoentHistoryPath = fixtures.path('enoent-repl-history-file.json');
+const emptyHistoryPath = fixtures.path('.empty-repl-history-file');
const defaultHistoryPath = path.join(common.tmpDir, '.node_repl_history');
-const emptyHiddenHistoryPath = path.join(fixtures,
- '.empty-hidden-repl-history-file');
+const emptyHiddenHistoryPath = fixtures.path('.empty-hidden-repl-history-file');
const devNullHistoryPath = path.join(common.tmpDir,
'.dev-null-repl-history-file');
// Common message bits