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:
parent
18076db8f0
commit
8d1ba3552f
1 changed files with 0 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue