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 /cli/tests/unit/headers_test.ts | |
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 'cli/tests/unit/headers_test.ts')
-rw-r--r-- | cli/tests/unit/headers_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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`, ); |