Added fields for more approver details

This commit is contained in:
Keith Holliday
2016-10-08 06:35:53 -05:00
parent f2e5bc52e5
commit 2173f53883
3 changed files with 5 additions and 1 deletions

View File

@@ -59,5 +59,7 @@ describe('POST /tasks/:id/approve/:userId', () => {
let syncedTask = find(memberTasks, findAssignedTask);
expect(syncedTask.approved).to.be.true;
expect(syncedTask.approvingUser).to.equal(user._id);
expect(syncedTask.approvedDate).to.be.a('string'); // date gets converted to a string as json doesn't have a Date type
});
});