mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Removing extra commas and collapsing actions into an object in the backend.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user