Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/mod.ts>testing.asserts.assertNotInstanceOf

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function testing.asserts.assertNotInstanceOf
import { testing } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { assertNotInstanceOf } = testing.asserts;

Make an assertion that obj is not an instance of type. If so, then throw.

Parameters

actual: A
unexpectedType: new (...args: any[]) => T
optional
msg = [UNSUPPORTED]

Returns

asserts actual is Exclude<A, T>