fix(tasks): fix unassigned error case

This commit is contained in:
SabreCat
2022-08-23 09:54:44 -05:00
parent da5c3f9602
commit 395b8db932
2 changed files with 23 additions and 20 deletions
@@ -32,9 +32,9 @@ describe('POST /tasks/:id/needs-work/:userId', () => {
it('errors when user is not assigned', async () => {
await expect(user.post(`/tasks/${task._id}/needs-work/${member._id}`))
.to.eventually.be.rejected.and.to.eql({
code: 404,
error: 'NotFound',
message: t('messageTaskNotFound'),
code: 400,
error: 'BadRequest',
message: 'Task not completed by this user.',
});
});