diff --git a/integration-libs/opf/base/core/connectors/opf-order.connector.spec.ts b/integration-libs/opf/base/core/connectors/opf-order.connector.spec.ts index 2c7e1b1b64d..7ef377453e4 100644 --- a/integration-libs/opf/base/core/connectors/opf-order.connector.spec.ts +++ b/integration-libs/opf/base/core/connectors/opf-order.connector.spec.ts @@ -5,8 +5,9 @@ import { OpfOrderAdapter } from './opf-order.adapter'; import { OpfOrderConnector } from './opf-order.connector'; class MockOpfOrderAdapter implements OpfOrderAdapter { - placeOpfOrder = createSpy('placeOpfOrder').and.callFake((userId, cartId, termsChecked) => - of(`load-${userId}-${cartId}-${termsChecked}`) + placeOpfOrder = createSpy('placeOpfOrder').and.callFake( + (userId, cartId, termsChecked) => + of(`load-${userId}-${cartId}-${termsChecked}`) ); } @@ -32,7 +33,9 @@ describe('OpfOrderConnector', () => { it('validate should call adapter', () => { let result; - service.placeOpfOrder('user1', 'cart1', true).subscribe((res) => (result = res)); + service + .placeOpfOrder('user1', 'cart1', true) + .subscribe((res) => (result = res)); expect(result).toEqual('load-user1-cart1-true'); expect(adapter.placeOpfOrder).toHaveBeenCalledWith('user1', 'cart1', true); }); diff --git a/integration-libs/opf/base/core/connectors/opf-payment.connector.spec.ts b/integration-libs/opf/base/core/connectors/opf-payment.connector.spec.ts index 4eaffe4df79..5adb2a3b963 100644 --- a/integration-libs/opf/base/core/connectors/opf-payment.connector.spec.ts +++ b/integration-libs/opf/base/core/connectors/opf-payment.connector.spec.ts @@ -34,12 +34,17 @@ describe('OpfPaymentConnector', () => { }); it('should call adapter', () => { - service.verifyPayment('1', {responseMap: [{key: 'test', value: 'value'}]}).pipe(take(1)).subscribe(); - expect(adapter.verifyPayment).toHaveBeenCalledWith('1', {responseMap: [{key: 'test', value: 'value'}]}); + service + .verifyPayment('1', { responseMap: [{ key: 'test', value: 'value' }] }) + .pipe(take(1)) + .subscribe(); + expect(adapter.verifyPayment).toHaveBeenCalledWith('1', { + responseMap: [{ key: 'test', value: 'value' }], + }); }); it('should call adapter', () => { service.submitPayment({}, '1', '2').pipe(take(1)).subscribe(); expect(adapter.submitPayment).toHaveBeenCalledWith({}, '1', '2'); }); -}); \ No newline at end of file +}); diff --git a/integration-libs/opf/base/core/connectors/otp.connector.spec.ts b/integration-libs/opf/base/core/connectors/otp.connector.spec.ts index 59eafae64ee..5136c3f66d5 100644 --- a/integration-libs/opf/base/core/connectors/otp.connector.spec.ts +++ b/integration-libs/opf/base/core/connectors/otp.connector.spec.ts @@ -36,4 +36,4 @@ describe('OtpConnector', () => { service.generateOtpKey('user1', 'cart1').pipe(take(1)).subscribe(); expect(adapter.generateOtpKey).toHaveBeenCalledWith('user1', 'cart1'); }); -}); \ No newline at end of file +});