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.
Node.js v8.12.0
Should.js v11.2.1
This may be related to: #228
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