feat(claimLog): added claim log section #1370

Merged
joan merged 2 commits from 5340-claim_log into dev 2023-03-07 08:28:14 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit 9f4aed7d83 - Show all commits

View File

@ -7,6 +7,17 @@ describe('claim log()', () => {
it('should return results filtering by user id', async() => { it('should return results filtering by user id', async() => {
const result = await app.models.Claim.logs({args: {userFk: salesPersonId}}, claimId); const result = await app.models.Claim.logs({args: {userFk: salesPersonId}}, claimId);
const expectedObject = {
model: 'Claim',
action: 'update',
changes: [
{property: 'hasToPickUp', before: false, after: true}
]
};
const firstRow = result[0];
expect(result.length).toBeGreaterThan(0); expect(result.length).toBeGreaterThan(0);
expect(firstRow).toEqual(jasmine.objectContaining(expectedObject));
}); });
}); });