Skip to main content
Module

x/unitest/mod.ts>anyOf

🃏 Deno-first universal unit testing framework
Latest
function anyOf
import { anyOf } from "https://deno.land/x/unitest@v1.0.0-beta.82/mod.ts";

matches any of expected value

import {
  anyOf,
  expect,
  test,
} from "https://deno.land/x/unitest@$VERSION/mod.ts";

test("should be any of 1, 2, 3", () => {
  expect(3).toEqual(anyOf([1, 2, 3]));
});

Parameters

expected: readonly unknown[]

Returns

AnyOf