Based on chai's property assertion, I am able to do the following for an object:
expect(record).to.have.property('deleted_at').that.is.a('date);
But with chai-things, I get the following error when I try to run the following code:
expect(manyRecords).to.all.have.property('deleted_at').that.is.a('date')
## AssertionError: expected [ Array(1) ] to be a date
Although removing the data type (date) assertion does pass the test, it seems to update the target of the assertion to the provided property, instead resets to the array.
Based on chai's property assertion, I am able to do the following for an object:
But with
chai-things, I get the following error when I try to run the following code:Although removing the data type (date) assertion does pass the test, it seems to update the target of the assertion to the provided property, instead resets to the array.