From ae86cbb551f7b88f83d73a447411f753485e49e2 Mon Sep 17 00:00:00 2001 From: Tim Reichen Date: Mon, 26 Oct 2020 16:03:30 +0100 Subject: 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 --- docs/testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/testing.md') 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"); }); ``` -- cgit v1.2.3