Skip to main content
Module

x/unitest/mod.ts>anyBoolean

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

matches any boolean or Boolean

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

test("should be any boolean", () => {
  expect(new Boolean(false)).toEqual(anyBoolean());
});

Returns

AnyBoolean