mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Handle null/undefined value in test assertion.
No Issue. - Test is not guaranteed to get a setting that has a "value" so we need to handle the case where it's null or undefined.
This commit is contained in:
parent
2bd129fb81
commit
2cfab3565f
@ -43,7 +43,7 @@ describe('Settings Model', function () {
|
||||
}).then(function (found) {
|
||||
should.exist(found);
|
||||
|
||||
found.get('value').should.equal(firstSetting.attributes.value);
|
||||
should(found.get('value')).equal(firstSetting.attributes.value);
|
||||
found.get('created_at').should.be.an.instanceof(Date);
|
||||
|
||||
done();
|
||||
|
Loading…
Reference in New Issue
Block a user