mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 17:26:11 +00:00
test(ee)
This commit is contained in:
parent
f05762e2e8
commit
47a020ef72
@ -121,7 +121,13 @@ describe('Entity service decorator', () => {
|
|||||||
await service.update(uid, id, input);
|
await service.update(uid, id, input);
|
||||||
|
|
||||||
expect(defaultService.emitEvent).toHaveBeenCalledWith(uid, WORKFLOW_UPDATE_STAGE, {
|
expect(defaultService.emitEvent).toHaveBeenCalledWith(uid, WORKFLOW_UPDATE_STAGE, {
|
||||||
id,
|
entityId: 1,
|
||||||
|
workflow: {
|
||||||
|
stages: {
|
||||||
|
from: 2,
|
||||||
|
to: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(defaultService.update).toHaveBeenCalledWith(uid, id, {
|
expect(defaultService.update).toHaveBeenCalledWith(uid, id, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user