diff options
author | Tim Reichen <timreichen@users.noreply.github.com> | 2020-10-26 16:03:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 16:03:30 +0100 |
commit | ae86cbb551f7b88f83d73a447411f753485e49e2 (patch) | |
tree | 312231d858369a0091b23e6310ba82b8d97f57cc /docs/testing.md | |
parent | 305a9c04ba60630f9708b681cfebb522a6110cc3 (diff) |
rename(std/testing): rename assert*Contains to assert*Includes (#7951)
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
Diffstat (limited to 'docs/testing.md')
-rw-r--r-- | docs/testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/testing.md b/docs/testing.md index 7ea9ff18c..b075bbca3 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -32,14 +32,14 @@ https://deno.land/std@$STD_VERSION/testing#usage to make testing easier: ```ts import { - assertArrayContains, + assertArrayIncludes, assertEquals, } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts"; Deno.test("hello world", () => { const x = 1 + 2; assertEquals(x, 3); - assertArrayContains([1, 2, 3, 4, 5, 6], [3], "Expected 3 to be in the array"); + assertArrayIncludes([1, 2, 3, 4, 5, 6], [3], "Expected 3 to be in the array"); }); ``` |