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 --- cli/tests/unit/headers_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/tests/unit/headers_test.ts') diff --git a/cli/tests/unit/headers_test.ts b/cli/tests/unit/headers_test.ts index 7ed7e1e2e..fba6f19c4 100644 --- a/cli/tests/unit/headers_test.ts +++ b/cli/tests/unit/headers_test.ts @@ -2,7 +2,7 @@ import { assert, assertEquals, - assertStringContains, + assertStringIncludes, unitTest, } from "./test_util.ts"; const { @@ -285,7 +285,7 @@ unitTest(function headerParamsArgumentsCheck(): void { } } assertEquals(hasThrown, 2); - assertStringContains( + assertStringIncludes( errMsg, `${method} requires at least 1 argument, but only 0 present`, ); @@ -309,7 +309,7 @@ unitTest(function headerParamsArgumentsCheck(): void { } } assertEquals(hasThrown, 2); - assertStringContains( + assertStringIncludes( errMsg, `${method} requires at least 2 arguments, but only 0 present`, ); @@ -329,7 +329,7 @@ unitTest(function headerParamsArgumentsCheck(): void { } } assertEquals(hasThrown, 2); - assertStringContains( + assertStringIncludes( errMsg, `${method} requires at least 2 arguments, but only 1 present`, ); -- cgit v1.2.3