deno.land / std@0.224.0 / assert / shared_test.ts
123456789101112131415161718192021// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assertArrayIncludes, assertEquals, assertNotEquals, assertNotStrictEquals, assertStrictEquals,} from "./mod.ts";
Deno.test({ name: "assert* functions with specified type parameter", fn() { assertEquals<string>("hello", "hello"); assertNotEquals<number>(1, 2); assertArrayIncludes<boolean>([true, false], [true]); const value = { x: 1 }; assertStrictEquals<typeof value>(value, value); assertNotStrictEquals<object>(value, { x: 1 }); },});
Version Info