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

贡献者指南