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

x/unitest/matcher/to_be_null.ts>toBeNull

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

Use .toBeNull when checking a value is null

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

test("passes when value is null", () => {
  expect(null).toBeNull();
  expect(undefined).not.toBeNull();
});

Parameters

actual: unknown