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
Assertion#properties() should pass but is throwing an error when a custom message is passed. For Example:
({
firstName: "Luke",
lastName: "Skywalker",
occupation: "Jedi Master",
favoriteBook: "The Force for Dummies"
}).should.have.properties([
'firstName',
'lastName',
'occupation',
'favoriteBook'
],
"The dark side I sense in you.");
Uncaught AssertionError: expected Object {
firstName: 'Luke',
lastName: 'Skywalker',
occupation: 'Jedi Master',
favoriteBook: 'The Force for Dummies'
} to have properties Array [ 'firstName', 'lastName', 'occupation', 'favoriteBook' ]
, 'The dark side I sense in you.'
If you remove the custom error message it will pass as it should.
Assertion#properties()
should pass but is throwing an error when a custom message is passed. For Example:If you remove the custom error message it will pass as it should.
Node.js v8.12.0
Should.js v11.2.1
This may be related to: #228
The text was updated successfully, but these errors were encountered: