mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
parent
21687325f0
commit
e7ff88655d
1 changed files with 10 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue