@@ -116,21 +116,21 @@ describe("HTTP Client", function (): void {
116
116
117
117
const scope = nock ( "https://checkout-test.adyen.com/v71" , {
118
118
reqheaders : {
119
- ' adyen-library-name' : ( headerValue ) => {
119
+ " adyen-library-name" : ( headerValue ) => {
120
120
expect ( headerValue ) . toBeTruthy ( ) ;
121
121
expect ( headerValue ) . toEqual ( expectedLibraryName ) ;
122
122
return true ;
123
123
} ,
124
- ' adyen-library-version' : ( headerValue ) => {
124
+ " adyen-library-version" : ( headerValue ) => {
125
125
expect ( headerValue ) . toBeTruthy ( ) ;
126
126
expect ( headerValue ) . toEqual ( expectedLibraryVersion ) ;
127
- expect
127
+ expect ;
128
128
return true ;
129
129
} ,
130
- ' user-agent' : ( headerValue ) => {
130
+ " user-agent" : ( headerValue ) => {
131
131
expect ( headerValue ) . toBeTruthy ( ) ;
132
132
expect ( headerValue ) . toEqual ( expectedUserAgent ) ;
133
- expect
133
+ expect ;
134
134
return true ;
135
135
}
136
136
}
@@ -153,21 +153,21 @@ describe("HTTP Client", function (): void {
153
153
154
154
const scope = nock ( "https://checkout-test.adyen.com/v71" , {
155
155
reqheaders : {
156
- ' adyen-library-name' : ( headerValue ) => {
156
+ " adyen-library-name" : ( headerValue ) => {
157
157
expect ( headerValue ) . toBeTruthy ( ) ;
158
158
expect ( headerValue ) . toEqual ( expectedLibraryName ) ;
159
159
return true ;
160
160
} ,
161
- ' adyen-library-version' : ( headerValue ) => {
161
+ " adyen-library-version" : ( headerValue ) => {
162
162
expect ( headerValue ) . toBeTruthy ( ) ;
163
163
expect ( headerValue ) . toEqual ( expectedLibraryVersion ) ;
164
- expect
164
+ expect ;
165
165
return true ;
166
166
} ,
167
- ' user-agent' : ( headerValue ) => {
167
+ " user-agent" : ( headerValue ) => {
168
168
expect ( headerValue ) . toBeTruthy ( ) ;
169
169
expect ( headerValue ) . toEqual ( expectedUserAgent ) ;
170
- expect
170
+ expect ;
171
171
return true ;
172
172
}
173
173
}
@@ -181,18 +181,18 @@ describe("HTTP Client", function (): void {
181
181
182
182
} ) ;
183
183
184
- describe ( ' Config class' , ( ) => {
184
+ describe ( " Config class" , ( ) => {
185
185
const DEFAULT_TIMEOUT = 30000 ; // Define the default timeout value
186
186
187
- test ( ' should set default timeout when no timeout is provided' , ( ) => {
187
+ test ( " should set default timeout when no timeout is provided" , ( ) => {
188
188
// Instantiate the Config class without passing a timeout
189
189
const config = new Config ( ) ;
190
190
191
191
// Expect that the timeout is set to the default value (30000)
192
192
expect ( config . connectionTimeoutMillis ) . toBe ( DEFAULT_TIMEOUT ) ;
193
193
} ) ;
194
194
195
- test ( ' should set custom timeout when provided' , ( ) => {
195
+ test ( " should set custom timeout when provided" , ( ) => {
196
196
// Instantiate the Config class with a custom timeout
197
197
const customTimeout = 50000 ;
198
198
const config = new Config ( { connectionTimeoutMillis : customTimeout } ) ;
0 commit comments