Removing extra commas and collapsing actions into an object in the backend.

This commit is contained in:
David Jay
2016-12-08 15:27:49 -05:00
parent b3d84d724f
commit 9d28577e9b
7 changed files with 13 additions and 37 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ describe('/api/v1/comments/:comment_id/actions', () => {
return chai.request(app)
.post('/api/v1/comments/abc/actions')
.set(passport.inject({id: '456', roles: ['admin']}))
.send({'user_id': '456', 'action_type': 'flag'})
.send({'action_type': 'flag'})
.then((res) => {
expect(res).to.have.status(201);
expect(res).to.have.body;