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

x/clarigen/src/deps.ts>assertEquals

Deno package for type-safe Clarinet tests
Go to Latest
function assertEquals
import { assertEquals } from "https://deno.land/x/clarigen@v0.4.9/src/deps.ts";

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Type parameter can be specified to ensure values under comparison have the same type. For example:

assertEquals<number>(1, 2)

Parameters

actual: unknown
expected: unknown
optional
msg: string

Parameters

actual: T
expected: T
optional
msg: string