diff --git a/node-powershell/node-powershell-tests.ts b/node-powershell/node-powershell-tests.ts index e1b28e4b92..a60f9db331 100644 --- a/node-powershell/node-powershell-tests.ts +++ b/node-powershell/node-powershell-tests.ts @@ -10,12 +10,11 @@ var ps = new nodePowershell(options); // Methods ps.addCommand('Write-Host node-powershell', [ { name: 'foregroundcolor', value: 'red' }, - { name: 'nonewline', value: null } //switch + { name: 'nonewline' } //switch ]).then((cmdsArr: string[]) => { }).catch((err: any) => { }); ps.addCommand('Write-Host node-powershell', [ - { foregroundcolor: 'red' }, - { nonewline: null } //switch + { foregroundcolor: 'red' } ]); ps.invoke().then((output: string) => { }).catch((err: any) => { }); diff --git a/node-powershell/tsconfig.json b/node-powershell/tsconfig.json index c8ca0fed82..6cd3607f4f 100644 --- a/node-powershell/tsconfig.json +++ b/node-powershell/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../"