Module

std/assert/fail.ts>fail

The Deno Standard Library
Latest
function fail
import { fail } from "https://dotland.deno.dev/std@0.224.0/assert/fail.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