mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #4363 from jaswilli/fix-test
Handle null/undefined value in test assertion.
This commit is contained in:
commit
bcbf3ae112
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue