You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a problem with not that useful assertion error message: expected { Object (firstName, lastName, ...) } to have keys 'countryCode', 'stateCode', 'zipCode', 'city', 'firstName', 'lastName', 'email', 'phone', 'line1', 'line2', 'company', and 'vatNumber'
It's a guessing game what's missing.
While Mocha runner does the same and hides the object, Webstorm (I guess) adds a link at the end "Click to see difference": AssertionError: expected { Object (firstName, lastName, ...) } to have keys 'countryCode', 'stateCode', 'zipCode', 'city', 'firstName', 'lastName', 'email', 'phone', and 'line1' <Click to see difference>
which opens this window:
Can Wallaby have the same window/link when I click red icon?
Assertion I use in Chai.js that gives the error above: expect(address).to.have.all.keys([ 'countryCode', 'stateCode', 'zipCode', 'city', 'firstName', 'lastName', 'email', 'phone', 'line1', 'line2', 'company', 'vatNumber' ]);
I can check every key separately as a workaround. But I think that comparison window is a great addition anyway.
The text was updated successfully, but these errors were encountered:
Hello, I have a problem with not that useful assertion error message:
expected { Object (firstName, lastName, ...) } to have keys 'countryCode', 'stateCode', 'zipCode', 'city', 'firstName', 'lastName', 'email', 'phone', 'line1', 'line2', 'company', and 'vatNumber'
It's a guessing game what's missing.
While Mocha runner does the same and hides the object, Webstorm (I guess) adds a link at the end "Click to see difference":
AssertionError: expected { Object (firstName, lastName, ...) } to have keys 'countryCode', 'stateCode', 'zipCode', 'city', 'firstName', 'lastName', 'email', 'phone', and 'line1' <Click to see difference>
which opens this window:
Can Wallaby have the same window/link when I click red icon?
Assertion I use in Chai.js that gives the error above:
expect(address).to.have.all.keys([ 'countryCode', 'stateCode', 'zipCode', 'city', 'firstName', 'lastName', 'email', 'phone', 'line1', 'line2', 'company', 'vatNumber' ]);
I can check every key separately as a workaround. But I think that comparison window is a great addition anyway.
The text was updated successfully, but these errors were encountered: