Skip to content

Commit

Permalink
chore: mocked setPaymentTransactionType() for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 committed Nov 21, 2023
1 parent 7405c33 commit 4024ca3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest/sfccCartridgeMocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ jest.mock('*/cartridge/scripts/util/adyenHelper', () => ({
return request
}),
getAdyenComponentType : jest.fn(() => {}),
setPaymentTransactionType : jest.fn(() => {}),
getOrderMainPaymentInstrumentType: jest.fn(() => {}),
getPaymentInstrumentType: jest.fn((isCreditCard) => isCreditCard ? 'CREDIT_CARD' : 'AdyenComponent'),
}), {virtual: true});
Expand Down

0 comments on commit 4024ca3

Please sign in to comment.