Lines Matching defs:const
5 const common = require('../common');
6 const fixtures = require('../common/fixtures');
7 const stream = require('stream');
8 const REPL = require('internal/repl');
9 const assert = require('assert');
10 const fs = require('fs');
11 const path = require('path');
12 const os = require('os');
13 const util = require('util');
17 const tmpdir = require('../common/tmpdir');
28 const _iter = data[Symbol.iterator]();
29 const doAction = () => {
30 const next = _iter.next();
38 const action = next.value;
56 const UP = { name: 'up' };
57 const DOWN = { name: 'down' };
58 const ENTER = { name: 'enter' };
59 const CLEAR = { ctrl: true, name: 'u' };
62 const historyFixturePath = fixtures.path('.node_repl_history');
63 const historyPath = path.join(tmpdir.path, '.fixture_copy_repl_history');
64 const historyPathFail = fixtures.path('nonexistent_folder', 'filename');
65 const defaultHistoryPath = path.join(tmpdir.path, '.node_repl_history');
66 const emptyHiddenHistoryPath = fixtures.path('.empty-hidden-repl-history-file');
67 const devNullHistoryPath = path.join(tmpdir.path,
70 const prompt = '> ';
71 const replDisabled = '\nPersistent history support disabled. Set the ' +
74 const homedirErr = '\nError: Could not get the home directory.\n' +
76 const replFailedRead = '\nError: Could not open history file.\n' +
79 const tests = [
143 const execSync = require('child_process').execSync;
174 const numtests = tests.length;
192 const runTestWrap = common.mustCall(runTest, numtests);
195 const opts = tests.shift();
211 const env = opts.env;
212 const test = opts.test;
213 const expected = opts.expected;
214 const clean = opts.clean;
215 const before = opts.before;
223 const output = chunk.toString();
258 const cleaned = clean === false ? false : cleanupTmpFile();