Asserts that a spy is called as much as expected and no more.
The self type of the spy function.
The arguments type of the spy function.
The return type of the spy function.
The spy to check
The number of the expected calls.
import { assertSpyCalls, spy } from "@std/testing/mock";const func = spy();func();func();assertSpyCalls(func, 2); Copy
import { assertSpyCalls, spy } from "@std/testing/mock";const func = spy();func();func();assertSpyCalls(func, 2);
Asserts that a spy is called as much as expected and no more.