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

x/proc/tests/deps/asserts.ts>fail

A better way to work with processes in Deno.
Latest
function fail
import { fail } from "https://deno.land/x/proc@0.21.9/tests/deps/asserts.ts";

Forcefully throws a failed assertion.

Examples

Example 1

import { fail } from "https://deno.land/std@0.224.0/assert/fail.ts";

fail("Deliberately failed!"); // Throws

Parameters

optional
msg: string

Returns

never