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 /std/testing/README.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 'std/testing/README.md')
-rw-r--r-- | std/testing/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
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 |