From e7ff88655d5c35a895fa2e5a985cc4617490101a Mon Sep 17 00:00:00 2001 From: Rob Muhlestein Date: Tue, 29 Jan 2019 15:10:40 -0500 Subject: [PATCH] runTests added to docs (denoland/deno_std#164) Original: https://github.com/denoland/deno_std/commit/5119cd3c591d2f6fd7ee920884ec795b01e4aca6 --- testing/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testing/README.md b/testing/README.md index 70613e0e1f..6d7d6d842f 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):