Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 2491d37

Browse files
committed
debug output fixes
1 parent 3045426 commit 2491d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store_mocks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export const scheduler = (t) => {
2929
expected = flattenFrames(expected)
3030
if (!equal(actual, expected)) {
3131
// pull values out of stream for nicer comparison output if they are cause of the mismatch
32-
const aVal = actual.map(a => Array.from(a.notification.value))
33-
const eVal = expected.map(a => Array.from(a.notification.value))
32+
const aVal = actual.map && actual.length ? actual.map(a => a.notification.value) : null
33+
const eVal = expected.map && expected.length ? expected.map(a => a.notification.value) : null
3434
if (!equal(aVal, eVal)) {
3535
t.deepEqual(aVal, eVal, 'stream emitted incorrect values')
3636
} else {

0 commit comments

Comments
 (0)