improve tests

This commit is contained in:
2017-03-11 01:58:09 +01:00
parent 4130ab55e2
commit d849c17817
4 changed files with 36 additions and 7 deletions

View File

@ -31,4 +31,10 @@ describe('smartshell', function () {
})
expect(testSmartshell).to.be.instanceof(smartshell.Smartshell)
})
it('should run async', function () {
return testSmartshell.execSilent('sleep 1 && npm -v').then(async (execResult) => {
console.log(execResult.stdout)
})
})
})