Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/unitest/matcher/to_be_falsy.ts>toBeFalsy

🃏 Deno-first universal unit testing framework
Latest
function toBeFalsy
import { toBeFalsy } from "https://deno.land/x/unitest@v1.0.0-beta.82/matcher/to_be_falsy.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