You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command I'm testing doesn't output anything when it competes successfully. When I run the command with Kapok under this circumstance, Kapok hangs indefinitely waiting for output.
it('should run successfully',()=>{returnKapok.start(CLI,['generate']).done()})
What method to I use to assert no output?
I'm currently using a Promise as a workaround, but I'm not sure this is correct:
it('should run successfully',()=>{returnnewPromise((resolve)=>{Kapok.start(CLI,['generate']).on('exit',()=>resolve())}).then(()=>{// assert files were created})})
The text was updated successfully, but these errors were encountered:
mojavelinux
added a commit
to mojavelinux/kapok-js
that referenced
this issue
Jan 6, 2018
The command I'm testing doesn't output anything when it competes successfully. When I run the command with Kapok under this circumstance, Kapok hangs indefinitely waiting for output.
What method to I use to assert no output?
I'm currently using a Promise as a workaround, but I'm not sure this is correct:
The text was updated successfully, but these errors were encountered: