Skip to content

Commit 60baf9c

Browse files
committed
Lint code
1 parent c7e9fea commit 60baf9c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/__tests__/httpClient.spec.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,21 @@ describe("HTTP Client", function (): void {
116116

117117
const scope = nock("https://checkout-test.adyen.com/v71", {
118118
reqheaders: {
119-
'adyen-library-name': (headerValue) => {
119+
"adyen-library-name": (headerValue) => {
120120
expect(headerValue).toBeTruthy();
121121
expect(headerValue).toEqual(expectedLibraryName);
122122
return true;
123123
},
124-
'adyen-library-version': (headerValue) => {
124+
"adyen-library-version": (headerValue) => {
125125
expect(headerValue).toBeTruthy();
126126
expect(headerValue).toEqual(expectedLibraryVersion);
127-
expect
127+
expect;
128128
return true;
129129
},
130-
'user-agent': (headerValue) => {
130+
"user-agent": (headerValue) => {
131131
expect(headerValue).toBeTruthy();
132132
expect(headerValue).toEqual(expectedUserAgent);
133-
expect
133+
expect;
134134
return true;
135135
}
136136
}
@@ -153,21 +153,21 @@ describe("HTTP Client", function (): void {
153153

154154
const scope = nock("https://checkout-test.adyen.com/v71", {
155155
reqheaders: {
156-
'adyen-library-name': (headerValue) => {
156+
"adyen-library-name": (headerValue) => {
157157
expect(headerValue).toBeTruthy();
158158
expect(headerValue).toEqual(expectedLibraryName);
159159
return true;
160160
},
161-
'adyen-library-version': (headerValue) => {
161+
"adyen-library-version": (headerValue) => {
162162
expect(headerValue).toBeTruthy();
163163
expect(headerValue).toEqual(expectedLibraryVersion);
164-
expect
164+
expect;
165165
return true;
166166
},
167-
'user-agent': (headerValue) => {
167+
"user-agent": (headerValue) => {
168168
expect(headerValue).toBeTruthy();
169169
expect(headerValue).toEqual(expectedUserAgent);
170-
expect
170+
expect;
171171
return true;
172172
}
173173
}
@@ -181,18 +181,18 @@ describe("HTTP Client", function (): void {
181181

182182
});
183183

184-
describe('Config class', () => {
184+
describe("Config class", () => {
185185
const DEFAULT_TIMEOUT = 30000; // Define the default timeout value
186186

187-
test('should set default timeout when no timeout is provided', () => {
187+
test("should set default timeout when no timeout is provided", () => {
188188
// Instantiate the Config class without passing a timeout
189189
const config = new Config();
190190

191191
// Expect that the timeout is set to the default value (30000)
192192
expect(config.connectionTimeoutMillis).toBe(DEFAULT_TIMEOUT);
193193
});
194194

195-
test('should set custom timeout when provided', () => {
195+
test("should set custom timeout when provided", () => {
196196
// Instantiate the Config class with a custom timeout
197197
const customTimeout = 50000;
198198
const config = new Config({ connectionTimeoutMillis: customTimeout });

src/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Service {
5151
throw new Error("Please provide your unique live url prefix on the setEnvironment() call on the Client.");
5252
}
5353

54-
if (url.includes('/possdk/v68')) {
54+
if (url.includes("/possdk/v68")) {
5555
return url.replace("https://checkout-test.adyen.com/",
5656
`https://${this.client.liveEndpointUrlPrefix}-checkout-live.adyenpayments.com/`);
5757
}

0 commit comments

Comments
 (0)