Module

x/justaos_orm/test/test.deps.ts>assertArrayIncludes

JUSTAOS's ORM (Object–relational mapping) tool is built for Deno and provides transparent persistence for JavaScript objects to Postgres database.
Go to Latest
function assertArrayIncludes
import { assertArrayIncludes } from "https://dotland.deno.dev/x/justaos_orm@v6.4.0/test/test.deps.ts";

Make an assertion that actual includes 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.

Examples

Example 1

import { assertArrayIncludes } from "https://deno.land/std@$STD_VERSION/assert/assert_array_includes.ts";

assertArrayIncludes([1, 2], [2]); // Doesn't throw
assertArrayIncludes([1, 2], [3]); // Throws

Parameters

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