Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/collections/deps/udibo/test_suite/mod.ts>TestSuite.test

Collection data structures that are not standard built-in objects in JavaScript. This includes a vector (double-ended queue), binary heap (priority queue), binary search tree, and a red black tree.
Go to Latest
method TestSuite.test
import { TestSuite } from "https://deno.land/x/collections@v0.10.1/deps/udibo/test_suite/mod.ts";

Register a test which will run when deno test is used on the command line and the containing module looks like a test module.

Parameters

name: string
fn:
| (() => void)
| (() => Promise<void>)
| ((context: T) => void)
| ((context: T) => Promise<void>)

Parameters

suite: TestSuite<T> | TestSuite<Partial<T>> | TestSuite<void>
name: string
fn:
| (() => void)
| (() => Promise<void>)
| ((context: T) => void)
| ((context: T) => Promise<void>)

Parameters

options: TestDefinition<T>