summaryrefslogtreecommitdiff
path: root/testing/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'testing/README.md')
-rw-r--r--testing/README.md11
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):