fix: typo update in test & ts lint update in ts

This commit is contained in:
p0rth01998 2020-05-15 08:48:45 +05:30
parent ec18721023
commit 9da35b5277
3 changed files with 24 additions and 24 deletions

View File

@ -6,7 +6,7 @@ const SIGNALS_TO_HANDLE: NodeJS.Signals[] = [
export class TermSignals {
private readonly terminateSpawnedProcessFuncHandlers: { [key: string]: any } = {}
private readonly verbose: boolean = false;
private readonly verbose: boolean = false
public _exitCalled = false
constructor (options: { verbose?: boolean } = {}) {

View File

@ -91,7 +91,7 @@ describe('EnvCmd', (): void => {
assert.equal(spawnStub.callCount, 1)
})
it('should should override existing env vars if noOverride option is false/missing',
it('should override existing env vars if noOverride option is false/missing',
async (): Promise<void> => {
process.env.BOB = 'cool'
getEnvVarsStub.returns({ BOB: 'test' })
@ -113,7 +113,7 @@ describe('EnvCmd', (): void => {
}
)
it('should should not override existing env vars if noOverride option is true',
it('should not override existing env vars if noOverride option is true',
async (): Promise<void> => {
process.env.BOB = 'cool'
getEnvVarsStub.returns({ BOB: 'test' })
@ -138,7 +138,7 @@ describe('EnvCmd', (): void => {
}
)
it('should should spawn process with shell option if useShell option is true',
it('should spawn process with shell option if useShell option is true',
async (): Promise<void> => {
process.env.BOB = 'cool'
getEnvVarsStub.returns({ BOB: 'test' })
@ -163,7 +163,7 @@ describe('EnvCmd', (): void => {
}
)
it('should should spawn process with command and args expanded if expandEnvs option is true',
it('should spawn process with command and args expanded if expandEnvs option is true',
async (): Promise<void> => {
getEnvVarsStub.returns({ PING: 'PONG', CMD: 'node' })
await envCmdLib.EnvCmd({