我正在测试我使用节点单元编码的流。第一个测试有效,但第二个测试失败:
FAILURES: Undone tests (or their setups/teardowns):
- testVideo
我认为这是因为正在发生异步...不确定。这是我正在做的事情:
rs
.pipe(theStreamBeingTested)
.pipe(through(captureActualResult, assertCorrectnessOfResult(test, expected)));
在 assertCorrectnessOfResult 我做我的断言然后调用:test.done
但是,当我导出多个测试时,这似乎不起作用......