|
3 | 3 | // Flags: --expose-internals
|
4 | 4 |
|
5 | 5 | const common = require('../common');
|
| 6 | +const fixtures = require('../common/fixtures'); |
6 | 7 | const stream = require('stream');
|
7 | 8 | const REPL = require('internal/repl');
|
8 | 9 | const assert = require('assert');
|
@@ -53,20 +54,16 @@ const ENTER = { name: 'enter' };
|
53 | 54 | const CLEAR = { ctrl: true, name: 'u' };
|
54 | 55 |
|
55 | 56 | // File paths
|
56 |
| -const fixtures = common.fixturesDir; |
57 |
| -const historyFixturePath = path.join(fixtures, '.node_repl_history'); |
| 57 | +const historyFixturePath = fixtures.path('.node_repl_history'); |
58 | 58 | const historyPath = path.join(common.tmpDir, '.fixture_copy_repl_history');
|
59 | 59 | const historyPathFail = path.join(common.tmpDir, '.node_repl\u0000_history');
|
60 |
| -const oldHistoryPathObj = path.join(fixtures, |
61 |
| - 'old-repl-history-file-obj.json'); |
62 |
| -const oldHistoryPathFaulty = path.join(fixtures, |
63 |
| - 'old-repl-history-file-faulty.json'); |
64 |
| -const oldHistoryPath = path.join(fixtures, 'old-repl-history-file.json'); |
65 |
| -const enoentHistoryPath = path.join(fixtures, 'enoent-repl-history-file.json'); |
66 |
| -const emptyHistoryPath = path.join(fixtures, '.empty-repl-history-file'); |
| 60 | +const oldHistoryPathObj = fixtures.path('old-repl-history-file-obj.json'); |
| 61 | +const oldHistoryPathFaulty = fixtures.path('old-repl-history-file-faulty.json'); |
| 62 | +const oldHistoryPath = fixtures.path('old-repl-history-file.json'); |
| 63 | +const enoentHistoryPath = fixtures.path('enoent-repl-history-file.json'); |
| 64 | +const emptyHistoryPath = fixtures.path('.empty-repl-history-file'); |
67 | 65 | const defaultHistoryPath = path.join(common.tmpDir, '.node_repl_history');
|
68 |
| -const emptyHiddenHistoryPath = path.join(fixtures, |
69 |
| - '.empty-hidden-repl-history-file'); |
| 66 | +const emptyHiddenHistoryPath = fixtures.path('.empty-hidden-repl-history-file'); |
70 | 67 | const devNullHistoryPath = path.join(common.tmpDir,
|
71 | 68 | '.dev-null-repl-history-file');
|
72 | 69 | // Common message bits
|
|
0 commit comments