antonmi/espec

Allow asserting that a mock will be called within a timeout

開放

#282 建立於 2018年10月26日

 (1 則留言) (0 個反應) (0 位負責人)Elixir (67 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (814 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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)?

貢獻者指南