diff options
| author | Rob Muhlestein <rob@skilstak.com> | 2019-01-29 15:10:40 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-29 15:10:40 -0500 |
| commit | e7ff88655d5c35a895fa2e5a985cc4617490101a (patch) | |
| tree | f1c21c6afe7e575ef455dc77c92bbed7ecefb152 | |
| parent | 21687325f0ed0928bc398c6381d30f0b1b775ce6 (diff) | |
runTests added to docs (denoland/deno_std#164)
Original: https://github.com/denoland/deno_std/commit/5119cd3c591d2f6fd7ee920884ec795b01e4aca6
| -rw-r--r-- | testing/README.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testing/README.md b/testing/README.md index 70613e0e1..6d7d6d842 100644 --- a/testing/README.md +++ b/testing/README.md @@ -37,10 +37,17 @@ functions: `assertEqual()` is the same as `assert.equal()` but maintained for backwards compatibility. +`runTests()` executes the declared tests. + Basic usage: ```ts -import { test, assert, equal } from "https://deno.land/x/testing/mod.ts"; +import { + runTests, + test, + assert, + equal +} from "https://deno.land/x/testing/mod.ts"; test({ name: "testing example", @@ -53,6 +60,8 @@ test({ assert.equal({ hello: "world" }, { hello: "world" }); } }); + +runTests(); ``` Short syntax (named function instead of object): |
