Update to-have-key.ts

This commit is contained in:
Bertie690 2025-09-15 21:15:41 -04:00 committed by Sirz Benjie
parent 1b6fbfda49
commit 31bb94684e
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -18,7 +18,7 @@ export function toHaveKey(this: MatcherState, received: unknown, expectedKey: un
if (received.size === 0) { if (received.size === 0) {
return { return {
pass: false, pass: this.isNot,
message: () => "Expected to receive a non-empty Map, but received map was empty!", message: () => "Expected to receive a non-empty Map, but received map was empty!",
expected: expectedKey, expected: expectedKey,
actual: received, actual: received,