MCPcopy
hub / github.com/sindresorhus/ow / deepEqual

Method deepEqual

source/predicates/map.ts:153–158  ·  view source on GitHub ↗

Test a Map to be deeply equal to the provided Map. @param expected - Expected Map to match.

(expected: Map<T1, T2>)

Source from the content-addressed store, hash-verified

151 @param expected - Expected Map to match.
152 */
153 deepEqual(expected: Map<T1, T2>): this {
154 return this.addValidator({
155 message: (map, label) => `Expected ${label} to be deeply equal to \`${JSON.stringify([...expected])}\`, got \`${JSON.stringify([...map])}\``,
156 validator: map => deepEqual(map, expected),
157 });
158 }
159}

Callers 8

absent.tsFile · 0.45
test.tsFile · 0.45
custom-message.tsFile · 0.45
map.tsFile · 0.45
array.tsFile · 0.45
set.tsFile · 0.45
object.tsFile · 0.45

Calls 1

addValidatorMethod · 0.80

Tested by

no test coverage detected