Skip to main content
Module

x/unitest/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/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