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