MCPcopy Create free account
hub / github.com/appium/appium / assertArrayIncludesDeep

Function assertArrayIncludesDeep

packages/appium/test/helpers.ts:56–58  ·  view source on GitHub ↗

* Asserts that `array` contains at least one element deeply equal to `expected`.

(array: readonly unknown[], expected: unknown)

Source from the content-addressed store, hash-verified

54 * Asserts that `array` contains at least one element deeply equal to `expected`.
55 */
56function assertArrayIncludesDeep(array: readonly unknown[], expected: unknown): void {
57 assert.ok(array.some((item) => isDeepStrictEqual(item, expected)));
58}
59
60export {
61 APPIUM_ROOT,

Callers 2

Calls 1

okMethod · 0.45

Tested by

no test coverage detected