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

x/unitest/matcher/to_be.ts>toBe

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

Use .toBe to compare primitive values

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

test("should be", () => {
  expect(0).toBe(0);
  expect(0).not.toBe(-0);
});

Parameters

actual: unknown
expected: unknown