This commit is contained in:
Jamie Howard 2023-06-09 14:43:28 +01:00
parent f05762e2e8
commit 47a020ef72

View File

@ -121,7 +121,13 @@ describe('Entity service decorator', () => {
await service.update(uid, id, input);
expect(defaultService.emitEvent).toHaveBeenCalledWith(uid, WORKFLOW_UPDATE_STAGE, {
id,
entityId: 1,
workflow: {
stages: {
from: 2,
to: 1,
},
},
});
expect(defaultService.update).toHaveBeenCalledWith(uid, id, {