summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-turn-off-editor-mode.js
blob: a966899b2c63910fb95a8f0213816478b4522bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
const common = require('../common');
const repl = require('repl');

testTurnOffEditorMode();

function testTurnOffEditorMode() {
  const server = repl.start({ prompt: '> ' });
  const warn = 'REPLServer.turnOffEditorMode() is deprecated';

  common.expectWarning('DeprecationWarning', warn, 'DEP0078');
  server.turnOffEditorMode();
  server.close();
}