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

x/deno_nest/tests/test_deps.ts

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
import * as denoNest from "https://deno.land/x/deno_nest@v3.15.1/tests/test_deps.ts";

Functions

Run some shared teardown after each test in the suite.

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual is not null or undefined. If not then throw.

Make an assertion, error will be thrown if expr have truthy value.

Make an assertion that error is an Error. If not then an error will be thrown. An error class and a string that should be included in the error message can also be asserted.

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Make an assertion that actual and expected are not strictly equal. If the values are strictly equal then throw.

Executes a function which returns a promise, expecting it to reject.

Make an assertion that actual and expected are strictly equal. If not then throw.

Executes a function, expecting it to throw. If it does not, then it throws.

Run some shared setup before each test in the suite.

Resolve a Promise after a given amount of milliseconds.

Registers a test suite.

Checks if a given value is an enum

Checks if a value is a number.

Checks if value is missing and if so, ignores all validators.

Checks if a given value is a real string.

Registers an individual test case.

Checks if the first number is less than or equal to the second.

Checks if the first number is greater than or equal to the second.

Validates given object and reject on error.

Interfaces

Registers a test suite.

Registers an individual test case.