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 d59c6ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,18 @@ 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',
isNot: this.isNot,
Expand Down

0 comments on commit d59c6ba

Please sign in to comment.