Skip to main content
Module

x/denoliver/deps.ts>assertEquals

A simple, dependency free static file server for Deno with possibly the worst name ever.
Latest
function assertEquals
import { assertEquals } from "https://deno.land/x/denoliver@2.3.1/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