Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('reverts without touching unaffected states', t => {
const dispatcher = createDispatcher()
Observable.zip([
dispatcher
.reduce(AdderStore)
.bufferCount(4),
dispatcher
.reduce(SubtractorStore)
.bufferCount(6)
])
.subscribe(([ x, y ]) => {
t.same(x, [ 0, 1, 2, 0 ])
t.same(y, [ 0, -1, -2, -3, -4, -5 ])
}, err => {
t.fail()
}, () => {
t.end()
})