1'use strict'; 2const common = require('../common'); 3const assert = require('assert'); 4const repl = require('repl'); 5 6testParseREPLKeyword(); 7 8function testParseREPLKeyword() { 9 const server = repl.start({ prompt: '> ' }); 10 const warn = 'REPLServer.parseREPLKeyword() is deprecated'; 11 12 common.expectWarning('DeprecationWarning', warn, 'DEP0075'); 13 assert.ok(server.parseREPLKeyword('clear')); 14 assert.ok(!server.parseREPLKeyword('tacos')); 15 server.close(); 16} 17