1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

Update manual to reflect newer test running (#4278)

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.
This commit is contained in:
Harry Wolff 2020-03-07 22:28:30 -05:00 committed by GitHub
parent 18076db8f0
commit 8d1ba3552f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -498,8 +498,6 @@ Deno.test(function t1() {
Deno.test(function t2() { Deno.test(function t2() {
assertEquals("world", "world"); assertEquals("world", "world");
}); });
await Deno.runTests();
``` ```
Try running this: Try running this: