mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Adding route to delete actions.
This commit is contained in:
@@ -134,4 +134,15 @@ describe('Comment: models', () => {
|
||||
// });
|
||||
// });
|
||||
});
|
||||
|
||||
describe('#removeAction', () => {
|
||||
it('should remove an action', () => {
|
||||
return Comment.removeAction('3', '123', 'flag').then(() => {
|
||||
return Action.findByItemIdArray(['123']);
|
||||
})
|
||||
.then((actions) => {
|
||||
expect(actions.length).to.equal(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user