Skip to main content
Module

x/velo/dev_deps.ts>assertEquals

Performant Cache implementations for Deno. Supports LRU, LFU, ARC and other caching policies.
Go to Latest
function assertEquals
Re-export
import { assertEquals } from "https://deno.land/x/velo@0.1.5/dev_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