chore: cleanup eslint suppressions (#38417)
* chore: cleanup eslint suppressions * address feedback * revert script/lib/azput.js * revert spec/fixtures/apps/remote-control/main.js * address feedback * revert typings/internal-ambient.d.ts
This commit is contained in:
parent
1c075e5ea0
commit
82af000a37
34 changed files with 76 additions and 115 deletions
|
@ -13,41 +13,33 @@ describe('utilityProcess module', () => {
|
|||
describe('UtilityProcess constructor', () => {
|
||||
it('throws when empty script path is provided', async () => {
|
||||
expect(() => {
|
||||
/* eslint-disable no-new */
|
||||
utilityProcess.fork('');
|
||||
/* eslint-disable no-new */
|
||||
}).to.throw();
|
||||
});
|
||||
|
||||
it('throws when options.stdio is not valid', async () => {
|
||||
expect(() => {
|
||||
/* eslint-disable no-new */
|
||||
utilityProcess.fork(path.join(fixturesPath, 'empty.js'), [], {
|
||||
execArgv: ['--test', '--test2'],
|
||||
serviceName: 'test',
|
||||
stdio: 'ipc'
|
||||
});
|
||||
/* eslint-disable no-new */
|
||||
}).to.throw(/stdio must be of the following values: inherit, pipe, ignore/);
|
||||
|
||||
expect(() => {
|
||||
/* eslint-disable no-new */
|
||||
utilityProcess.fork(path.join(fixturesPath, 'empty.js'), [], {
|
||||
execArgv: ['--test', '--test2'],
|
||||
serviceName: 'test',
|
||||
stdio: ['ignore', 'ignore']
|
||||
});
|
||||
/* eslint-disable no-new */
|
||||
}).to.throw(/configuration missing for stdin, stdout or stderr/);
|
||||
|
||||
expect(() => {
|
||||
/* eslint-disable no-new */
|
||||
utilityProcess.fork(path.join(fixturesPath, 'empty.js'), [], {
|
||||
execArgv: ['--test', '--test2'],
|
||||
serviceName: 'test',
|
||||
stdio: ['pipe', 'inherit', 'inherit']
|
||||
});
|
||||
/* eslint-disable no-new */
|
||||
}).to.throw(/stdin value other than ignore is not supported/);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue