Skip to main content
Module

x/momentum/di/test_deps.ts>assertArrayContains

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
function assertArrayContains
import { assertArrayContains } from "https://deno.land/x/momentum@v0.8.2/di/test_deps.ts";

Make an assertion that actual contains the expected values. If not then an error will be thrown.

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

assertArrayContains<number>([1, 2], [2])

Parameters

actual: ArrayLike<unknown>
expected: ArrayLike<unknown>
optional
msg: string

Parameters

actual: ArrayLike<T>
expected: ArrayLike<T>
optional
msg: string