Skip to content
Snippets Groups Projects
Commit bd45d40c authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4661 fix tests

parent 6d8d86ed
No related branches found
No related tags found
No related merge requests found
......@@ -481,14 +481,14 @@ describe('VorgangService', () => {
const commandStateResource: StateResource<CommandResource> = createStateResource(command);
beforeEach(() => {
commandService.createCommandByOrder.mockReturnValue(hot('a', { a: commandStateResource }));
commandService.createCommandByProps.mockReturnValue(hot('a', { a: commandStateResource }));
})
it('should call commandService', () => {
service.processVorgang(vorgangWithEingang);
const expectedProps: CreateCommandProps = { resource: vorgangWithEingang, linkRel: VorgangWithEingangLinkRel.PROCESS_VORGANG, command: { order: CommandOrder.PROCESS_VORGANG, body: { processorNames: ['dummyProcessorName']} }};
expect(commandService.createCommandByOrder).toHaveBeenCalledWith(expectedProps);
expect(commandService.createCommandByProps).toHaveBeenCalledWith(expectedProps);
})
it('should return command', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment