UNPKG

@async-fn/sinon

Version:

Additional methods to sinon.spy to introduce "late resolve" of promises returned by mock functions. This allows tests that read chronologically, like a story.

7 lines (5 loc) 139 B
import sinon from 'sinon'; import { asyncFnFor } from '@async-fn/core'; export default asyncFnFor({ mockFunctionFactory: sinon.spy, });