1'use strict'; 2const common = require('../common'); 3const repl = require('repl'); 4 5testTurnOffEditorMode(); 6 7function testTurnOffEditorMode() { 8 const server = repl.start({ prompt: '> ' }); 9 const warn = 'REPLServer.turnOffEditorMode() is deprecated'; 10 11 common.expectWarning('DeprecationWarning', warn, 'DEP0078'); 12 server.turnOffEditorMode(); 13 server.close(); 14} 15