How do I test that an object retrieved from a fulfilled promise has a non-null property?
I have a promise that returns an object similar to the following:
{
id: 1,
aDate: 2015-02-12T11:50:00.511Z
}
I need to check that the aDate
property is set and non null. How do I check for the existence of the aDate
property without knowing its exact value (preferably using .should.eventually. ...
?