mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(assert): add module example (#4439)
This commit is contained in:
parent
ef0d782254
commit
021323eba6
@ -7,6 +7,13 @@
|
||||
* This module is browser compatible, but do not rely on good formatting of
|
||||
* values for AssertionError messages in browsers.
|
||||
*
|
||||
* ```ts
|
||||
* import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
|
||||
*
|
||||
* assert("I am truthy"); // Doesn't throw
|
||||
* assert(false); // Throws `AssertionError`
|
||||
* ```
|
||||
*
|
||||
* @module
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user