Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aax/dev_deps.ts>anyArray

Universal AAX API client
Latest
function anyArray
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()),
  });
});

Parameters

optional
expected: unknown

Returns

AnyArray