Skip to content

Commit 2c5bf53

Browse files
committed
Update watchWithTime usage
Prettier is formatting the line as: ```js ;({log, unwatch} = watchWithTime(received)) ``` so we are disabling prettier formatting for now.
1 parent 1ae4648 commit 2c5bf53

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,16 @@ export default function jestKefir(Kefir) {
7979
},
8080

8181
toEmitInTime(received, expected, cb = noop, {timeLimit = 10000, reverseSimultaneous = false} = {}) {
82-
let log = null
82+
let log,
83+
unwatch = null
8384

8485
withFakeTime((tick, clock) => {
85-
log = watchWithTime(received)
86+
// prettier-ignore
87+
({log, unwatch} = watchWithTime(received))
8688
cb(tick, clock)
8789
tick(timeLimit)
8890
}, reverseSimultaneous)
91+
unwatch()
8992

9093
const options = {
9194
comment: 'Emitted values',

0 commit comments

Comments
 (0)