"that a JavaScript object matches a subset of the properties of an object." So toMatchObject can have unintended assertions such as: expect({ a: ... ... <看更多>
Search
Search
"that a JavaScript object matches a subset of the properties of an object." So toMatchObject can have unintended assertions such as: expect({ a: ... ... <看更多>
Add a matcher to assert a given object keys exists. ... Could you have another expect to make sure those other properties are not present? ... <看更多>
Add a matcher to assert a given object keys exists. ... Could you have another expect to make sure those other properties are not present? ... <看更多>
Matchers should return an object with two keys. pass indicates whether ... The expect.assertions(2) call ensures that both callbacks actually get called. ... <看更多>