Skip to content

Commit 24c7a23

Browse files
committed
Use template literals instead of str concatenation
1 parent 3a85b49 commit 24c7a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/httpClient.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("HTTP Client", function (): void {
110110
const client = createClient();
111111
const checkout = new CheckoutAPI(client);
112112

113-
const expectedUserAgent = LibraryConstants.LIB_NAME + `/` + LibraryConstants.LIB_VERSION;
113+
const expectedUserAgent = `${LibraryConstants.LIB_NAME}/${LibraryConstants.LIB_VERSION}`;
114114
const expectedLibraryName = LibraryConstants.LIB_NAME;
115115
const expectedLibraryVersion = LibraryConstants.LIB_VERSION;
116116

@@ -147,7 +147,7 @@ describe("HTTP Client", function (): void {
147147
client.config.applicationName = "testApp";
148148
const checkout = new CheckoutAPI(client);
149149

150-
const expectedUserAgent = `testApp ` + LibraryConstants.LIB_NAME + `/` + LibraryConstants.LIB_VERSION; // include applicationName too
150+
const expectedUserAgent = `testApp ${LibraryConstants.LIB_NAME}/${LibraryConstants.LIB_VERSION}`; // include applicationName too
151151
const expectedLibraryName = LibraryConstants.LIB_NAME;
152152
const expectedLibraryVersion = LibraryConstants.LIB_VERSION;
153153

0 commit comments

Comments
 (0)