Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/unitest/matcher/mod.ts>toBeFalsy

๐Ÿƒ Deno-first universal unit testing framework
Latest
function toBeFalsy
Re-export
import { toBeFalsy } from "https://deno.land/x/unitest@v1.0.0-beta.82/matcher/mod.ts";

Use .toBeFalsy when you don't care what a value is and you want to ensure a value is false in a boolean context

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

test("should be falsy", () => {
  expect(false).toBeFalsy();
  expect(0).toBeFalsy();
  expect(1).not.toBeFalsy();
});

Parameters

actual: unknown