mirror of
https://github.com/toddbluhm/env-cmd.git
synced 2025-12-08 18:23:33 +00:00
fix: typo update in test & ts lint update in ts
This commit is contained in:
parent
ec18721023
commit
9da35b5277
@ -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 } = {}) {
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user