deno.land / std@0.224.0 / expect / _custom_equality_tester.ts
1234567891011121314151617181920// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import type { Tester } from "./_types.ts";
const customEqualityTesters: Tester[] = [];
export function addCustomEqualityTesters(newTesters: Tester[]) { if (!Array.isArray(newTesters)) { throw new TypeError( `customEqualityTester expects an array of Testers. But got ${typeof newTesters}`, ); }
customEqualityTesters.push(...newTesters);}
export function getCustomEqualityTesters() { return customEqualityTesters;}
Version Info