Skip to content

Commit

Permalink
Update watchWithTime usage
Browse files Browse the repository at this point in the history
Prettier is formatting the line as:

```js
;({log, unwatch} = watchWithTime(received))
```

so we are disabling prettier formatting for now.
  • Loading branch information
bpinto committed Nov 28, 2021
1 parent 1ae4648 commit 2c5bf53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,16 @@ export default function jestKefir(Kefir) {
},

toEmitInTime(received, expected, cb = noop, {timeLimit = 10000, reverseSimultaneous = false} = {}) {
let log = null
let log,
unwatch = null

withFakeTime((tick, clock) => {
log = watchWithTime(received)
// prettier-ignore
({log, unwatch} = watchWithTime(received))
cb(tick, clock)
tick(timeLimit)
}, reverseSimultaneous)
unwatch()

const options = {
comment: 'Emitted values',
Expand Down

0 comments on commit 2c5bf53

Please sign in to comment.