Releases: tommy-mitchell/test-quadruple
Releases · tommy-mitchell/test-quadruple
v0.3.0
v0.2.0
Adds a flatCalls
detail to tq.explain()
that is the flattened arguments of all calls to a given spy:
import test from "ava";
import * as tq from "test-quadruple";
test("explain", t => {
const fn = tq.spy();
fn(1, 2);
fn(3, 4);
t.like(tq.explain(fn), {
callCount: 2,
called: true,
calls: [
{ arguments: [1, 2] },
{ arguments: [3, 4] },
],
flatCalls: [1, 2, 3, 4],
});
});
v0.1.0
Initial release.