antonmi / antonmi/espec

Allow asserting that a mock will be called within a timeout

Aperta
#282 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement help wanted
Lingua principale
Elixir
Stelle
813
Fork
66
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It'd be nice to have the option to assert that a mocked function will be called in a defined timeout.

`:meck.wait` supports it pretty directly, should be a good fit to `expect(mod) |> to(receive ...)`.
Maybe something like `expect(mod) |> to(receive ..., within: 500)`?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.