From 8d1ba3552fbbcae9284fdab63cc6613045684d01 Mon Sep 17 00:00:00 2001 From: Harry Wolff Date: Sat, 7 Mar 2020 22:28:30 -0500 Subject: Update manual to reflect newer test running (#4278) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This updates this example code to follow the new test running conventions. The code as is, when ran produces the following output: ``` ➜ dencro git:(master) ✗ deno test Compile file:///Users/hswolff/Sites/dencro/test.ts running 2 tests OK oneTest (2.00ms) OK t2 (0.00ms) test result: OK 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (2.00ms) running 2 tests OK oneTest (0.00ms) OK t2 (0.00ms) test result: OK 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (0.00ms) ➜ dencro git:(master) ✗ ``` Removing `await Deno.runTests();` just causes the tests to run once. --- std/manual.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/std/manual.md b/std/manual.md index 3364cfb67..026a4330b 100644 --- a/std/manual.md +++ b/std/manual.md @@ -498,8 +498,6 @@ Deno.test(function t1() { Deno.test(function t2() { assertEquals("world", "world"); }); - -await Deno.runTests(); ``` Try running this: -- cgit v1.2.3