Fix routes and tests for asset status change.

This commit is contained in:
gaba
2016-12-10 14:01:24 -10:00
parent 81071eacd6
commit 5e21102c2f
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -199,8 +199,9 @@ describe('/api/v1/comments', () => {
it('shouldn\'t create a comment when the asset has expired commenting', () => {
return Asset.create({
closedAt: new Date().setDate(0),
closedMessage: 'tests said expired!'
status: 'closed',
statusChangedAt: new Date().setDate(0),
statusClosedMessage: 'tests said expired!'
})
.then((asset) => {
return chai.request(app)