Skip to content

Commit be3cf63

Browse files
committed
tests fix
1 parent 04fda97 commit be3cf63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/ubs/ubs/components/ubs-order-details/ubs-order-location-popup/ubs-order-location-popup.component.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ describe('UbsOrderLocationPopupComponent', () => {
144144
component.selectedTariff = fakeTariffs[1];
145145
component.saveLocation();
146146
expect(localStorageMock.setTariffId).toHaveBeenCalledWith(fakeTariffs[1].id);
147-
expect(storeMock.dispatch).toHaveBeenCalled();
148147
expect(dialogMock.close).toHaveBeenCalled();
149148
});
150149
});

src/app/ubs/ubs/components/ubs-submit-order/ubs-submit-order.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ describe('UBSSubmitOrderComponent', () => {
2828

2929
beforeEach(async () => {
3030
const storeSpy = jasmine.createSpyObj('Store', ['pipe']);
31-
const orderServiceSpy = jasmine.createSpyObj('OrderService', ['processExistingOrder', 'processNewOrder']);
31+
const orderServiceSpy = jasmine.createSpyObj('OrderService', ['processExistingOrder', 'processNewOrder', 'cancelExistingPayment']);
32+
orderServiceSpy.cancelExistingPayment.and.returnValue(of(true));
3233
ubsOrderFormServiceSpy = jasmine.createSpyObj('UBSOrderFormService', [
3334
'transferOrderId',
3435
'setOrderResponseErrorStatus',

0 commit comments

Comments
 (0)