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

x/earthstar/src/test/asserts.ts>assert

Storage for private, distributed, offline-first applications.
Go to Latest
function assert
import { assert } from "https://deno.land/x/earthstar@v10.2.0/src/test/asserts.ts";

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

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr