deno.land / std@0.224.0 / assert / assert_not_instance_of_test.ts

assert_not_instance_of_test.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assertNotInstanceOf } from "./mod.ts";
Deno.test({ name: "assertNotInstanceOf", fn() { assertNotInstanceOf("not a number", Number); assertNotInstanceOf(42, String); assertNotInstanceOf(new URL("http://example.com"), Boolean); },});
std

Version Info

Tagged at
6 months ago