Skip to main content
Module

x/unitest/mod.ts>toBeFalse

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

Use .toBeFalse when checking a value is equal (===) to false

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

const expect = defineExpect({
  matcherMap: {
    toBeFalse,
  },
  modifierMap: {
    not,
  },
});

test("should be false", () => {
  expect(false).toBeFalse();
  expect(true).not.toBeFalse();
});

Parameters

actual: unknown