diff options
author | Vladimir Iakovlev <nvbn.rm@gmail.com> | 2020-06-16 23:22:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 17:22:54 -0400 |
commit | bd26a72ab3fc5b5f5403959ec081efdf8d39b666 (patch) | |
tree | 5073ad9f877a3e10d4806f40c5d2ff754ef3da45 /std/testing | |
parent | b86514aa7e135437beffbe3e1f473f16967dabc4 (diff) |
Update assertions names in std/testing README (#6318)
Diffstat (limited to 'std/testing')
-rw-r--r-- | std/testing/README.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/std/testing/README.md b/std/testing/README.md index 82f8f9114..0e0ee14e7 100644 --- a/std/testing/README.md +++ b/std/testing/README.md @@ -16,9 +16,10 @@ pretty-printed diff of failing assertion. `expected` are not equal. - `assertNotEquals()` - Uses the `equal` comparison and throws if the `actual` and `expected` are equal. -- `assertStrictEq()` - Compares `actual` and `expected` strictly, therefore for - non-primitives the values must reference the same instance. -- `assertStrContains()` - Make an assertion that `actual` contains `expected`. +- `assertStrictEquals()` - Compares `actual` and `expected` strictly, therefore + for non-primitives the values must reference the same instance. +- `assertStringContains()` - Make an assertion that `actual` contains + `expected`. - `assertMatch()` - Make an assertion that `actual` match RegExp `expected`. - `assertArrayContains()` - Make an assertion that `actual` array contains the `expected` values. @@ -57,20 +58,20 @@ Deno.test("example", function (): void { }); ``` -Using `assertStrictEq()`: +Using `assertStrictEquals()`: ```ts Deno.test("isStrictlyEqual", function (): void { const a = {}; const b = a; - assertStrictEq(a, b); + assertStrictEquals(a, b); }); // This test fails Deno.test("isNotStrictlyEqual", function (): void { const a = {}; const b = {}; - assertStrictEq(a, b); + assertStrictEquals(a, b); }); ``` |