Fixed key ssue in matchers

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

View File

@ -25,7 +25,7 @@ export function toHaveKey(this: MatcherState, received: unknown, expectedKey: un
}; };
} }
const keys = [...received.values()]; const keys = [...received.keys()];
const pass = this.equals(keys, expectedKey, [ const pass = this.equals(keys, expectedKey, [
...this.customTesters, ...this.customTesters,
this.utils.iterableEquality, this.utils.iterableEquality,