mirror of https://gitee.com/openkylin/nodejs.git
15 lines
367 B
JavaScript
15 lines
367 B
JavaScript
'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();
|
|
}
|