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 --- std/testing/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/testing/README.md') diff --git a/std/testing/README.md b/std/testing/README.md index f970471cb..2cff96a6d 100644 --- a/std/testing/README.md +++ b/std/testing/README.md @@ -18,12 +18,12 @@ pretty-printed diff of failing assertion. and `expected` are equal. - `assertStrictEquals()` - Compares `actual` and `expected` strictly, therefore for non-primitives the values must reference the same instance. -- `assertStringContains()` - Make an assertion that `actual` contains +- `assertStringIncludes()` - Make an assertion that `actual` includes `expected`. - `assertMatch()` - Make an assertion that `actual` match RegExp `expected`. - `assertNotMatch()` - Make an assertion that `actual` not match RegExp `expected`. -- `assertArrayContains()` - Make an assertion that `actual` array contains the +- `assertArrayIncludes()` - Make an assertion that `actual` array includes the `expected` values. - `assertObjectMatch()` - Make an assertion that `actual` object match `expected` subset object -- cgit v1.2.3