add unit test and cleanup (#28)

* remove unnessary import

* use mock for child_process.spawnSync()

* document useful resources

* use v1.1.0 for daily scan
This commit is contained in:
Naoki Oketani
2019-12-13 16:09:10 +09:00
committed by GitHub
parent 3e659c8c99
commit a0a6093710
5 changed files with 63 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ import stripAnsi from 'strip-ansi'
export class Audit {
stdout: string = ''
status: number | null = null
private status: number | null = null
public async run(): Promise<void> {
const result: SpawnSyncReturns<string> = spawnSync('npm', ['audit'], {