Function expectCallsAndReset

  • Expects the spy to have been called the exact number of times as the argument lists provided, with those arguments, then resets the spy.

    const spy = jasmine.createSpy();

    spy(1)
    spy(2, 3)
    spy()
    expectCallsAndReset(spy, [1], [2, 3], []);

    Parameters

    • spy: Spy<Func>
    • Rest ...allArgs: any[][]

    Returns void