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

x/unitest/matcher/mod.ts>toEqual

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

Use .toEqual to compare recursively all properties of object instances

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

test("passes when array contains given value", () => {
  expect({}).toEqual({});
});

Parameters

actual: unknown
expected: unknown