1'use strict'; 2const common = require('../common'); 3 4common.skipIfInspectorDisabled(); 5 6const fixtures = require('../common/fixtures'); 7const startCLI = require('../common/debugger'); 8 9const assert = require('assert'); 10 11{ 12 const cli = startCLI([fixtures.path('debugger/empty.js')]); 13 14 function onFatal(error) { 15 cli.quit(); 16 throw error; 17 } 18 19 return cli.waitForInitialBreak() 20 .then(() => cli.waitForPrompt()) 21 .then(() => cli.command('help')) 22 .then(() => { 23 assert.match(cli.output, /run, restart, r\s+/m); 24 }) 25 .then(() => cli.quit()) 26 .then(null, onFatal); 27} 28