diff --git a/processor/src/service/payment.service.ts b/processor/src/service/payment.service.ts index 07f435c..ccdfad5 100644 --- a/processor/src/service/payment.service.ts +++ b/processor/src/service/payment.service.ts @@ -393,7 +393,7 @@ export const handleCreatePayment = async (ctPayment: Payment): Promise { }); test('should be able to return the correct addCustomLineItem action', () => { - const customId = 'custom-id'; - const name = { de: MOLLIE_SURCHARGE_CUSTOM_LINE_ITEM, en: MOLLIE_SURCHARGE_CUSTOM_LINE_ITEM, diff --git a/processor/tests/commercetools/customObjects.commercetools.spec.ts b/processor/tests/commercetools/customObjects.commercetools.spec.ts index e803c47..6debd2c 100644 --- a/processor/tests/commercetools/customObjects.commercetools.spec.ts +++ b/processor/tests/commercetools/customObjects.commercetools.spec.ts @@ -58,19 +58,6 @@ describe('Test getMethodConfigObjects', () => { }); it('should throw error', async () => { - const mockWithContainer = jest.fn(); - const mockGet = jest.fn(); - const customObjects = [ - { - id: '123', - name: '123', - }, - { - id: 'test', - name: 'test', - }, - ] as unknown as CustomObject[]; - const error = new Error('dummy error'); (createApiRoot as jest.Mock).mockReturnValue({ @@ -133,12 +120,6 @@ describe('Test getSingleMethodConfigObject', () => { it('should throw error', async () => { const key = 'test'; - const customObject = { - id: '123', - key, - name: '123', - } as unknown as CustomObject[]; - const mockError = new Error('dummy error'); (createApiRoot as jest.Mock).mockReturnValue({