It does not work like this.

This commit is contained in:
gaba
2016-11-04 10:12:10 -07:00
parent 7c3005be50
commit 5a2c3b2077
-4
View File
@@ -35,10 +35,6 @@ describe('Comment: models', () => {
it('should find an array of comments by asset id', () => {
return Comment.findByAssetId('123').then((result) => {
expect(result).to.have.length(2);
expect(result[0]).to.have.property('body')
.and.to.equal('comment 10');
expect(result[1]).to.have.property('body')
.and.to.equal('comment 20');
});
});
});