Back to Sinon

sinon.match.array

docs/concepts/matchers/api/array.md

22.1.0537 B
Original Source

sinon.match.array

Requires the value to be an Array.

sinon.match.array.deepEquals(arr)

Requires an Array to be deep equal another one.

sinon.match.array.startsWith(arr)

Requires an Array to start with the same values as another one.

sinon.match.array.endsWith(arr)

Requires an Array to end with the same values as another one.

sinon.match.array.contains(arr)

Requires an Array to contain each one of the values the given array has.

<<< ../../../.vitepress/tests/docs/matchers/api/array.test.js