import { anyArray } from "https://deno.land/x/aax@v1.0.0-beta.1/dev_deps.ts";
matches any array
or any specific array
import {
anyArray,
anyString,
expect,
test,
} from "https://deno.land/x/unitest@$VERSION/mod.ts";
test("should be any array", () => {
expect({ students: ["Alice", "Bob", "John"] }).toEqual({
students: anyArray(),
});
});
test("should be any string array", () => {
expect({ students: ["Alice", "Bob", "John"] }).toEqual({
students: anyArray(anyString()),
});
});