Adding route to delete actions.

This commit is contained in:
David Jay
2016-11-11 17:06:29 -05:00
parent 92869e529a
commit 4bea5e5914
3 changed files with 44 additions and 7 deletions
+11
View File
@@ -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);
});
});
});
});