@@ -10,7 +10,7 @@ import {
10
10
import { MollieApiError , PaymentCreateParams } from '@mollie/api-client' ;
11
11
import { logger } from '../../src/utils/logger.utils' ;
12
12
import CustomError from '../../src/errors/custom.error' ;
13
- import { VERSION_STRING } from '../../src/utils/constant.utils' ;
13
+ import { MOLLIE_VERSION_STRINGS } from '../../src/utils/constant.utils' ;
14
14
import { getApiKey } from '../../src/utils/config.utils' ;
15
15
import fetch from 'node-fetch' ;
16
16
@@ -136,7 +136,7 @@ describe('createPaymentWithCustomMethod', () => {
136
136
const headers = {
137
137
'Content-Type' : 'application/json' ,
138
138
Authorization : `Bearer ${ getApiKey ( ) } ` ,
139
- versionStrings : ` ${ VERSION_STRING } ` ,
139
+ versionStrings : MOLLIE_VERSION_STRINGS ,
140
140
} ;
141
141
142
142
( fetch as unknown as jest . Mock ) . mockImplementation ( async ( ) =>
@@ -174,7 +174,7 @@ describe('createPaymentWithCustomMethod', () => {
174
174
const headers = {
175
175
'Content-Type' : 'application/json' ,
176
176
Authorization : `Bearer ${ getApiKey ( ) } ` ,
177
- versionStrings : ` ${ VERSION_STRING } ` ,
177
+ versionStrings : MOLLIE_VERSION_STRINGS ,
178
178
} ;
179
179
180
180
const response = {
@@ -239,7 +239,7 @@ describe('createPaymentWithCustomMethod', () => {
239
239
const headers = {
240
240
'Content-Type' : 'application/json' ,
241
241
Authorization : `Bearer ${ getApiKey ( ) } ` ,
242
- versionStrings : ` ${ VERSION_STRING } ` ,
242
+ versionStrings : MOLLIE_VERSION_STRINGS ,
243
243
} ;
244
244
245
245
const response = {
@@ -295,7 +295,7 @@ describe('createPaymentWithCustomMethod', () => {
295
295
const headers = {
296
296
'Content-Type' : 'application/json' ,
297
297
Authorization : `Bearer ${ getApiKey ( ) } ` ,
298
- versionStrings : ` ${ VERSION_STRING } ` ,
298
+ versionStrings : MOLLIE_VERSION_STRINGS ,
299
299
} ;
300
300
301
301
const errorMessage = 'SCTM - createPaymentWithCustomMethod - Failed to create a payment with unknown errors' ;
0 commit comments