Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/unitest/modifier/mod.ts

๐Ÿƒ Deno-first universal unit testing framework
Latest
import * as unitest from "https://deno.land/x/unitest@v1.0.0-beta.82/modifier/mod.ts";

Variables

Use .boolean to convert any actual to boolean. Internally, the Boolean constructor is used.

Use .debug to output debug info to console with console.debug.

Jest default modifier map

Use .lowerCase to convert string actual to lower case.

Use .not to reverse the test result

Use .number to convert any actual to number. Internally, the Number constructor is used.

Use .resolves to resolve Promise before match

Use .resolves to resolve Promise before match

Use .string to convert any actual to string. Internally, the String constructor is used.

Use .trim to removes the leading and trailing white space and line terminator characters from a actual.

Use .upperCase to convert string actual to lower case.