Skip to content

Commit 24692fe

Browse files
committed
lint
1 parent 8ebc22d commit 24692fe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/apiClient.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe("ApiClient", () => {
3232
clientId: "test-client-id",
3333
clientSecret: "test-client-secret",
3434
},
35+
userAgent: "test-user-agent",
3536
});
3637

3738
// @ts-expect-error accessing private property for testing
@@ -105,9 +106,9 @@ describe("ApiClient", () => {
105106
method: "POST",
106107
headers: {
107108
"Content-Type": "application/json",
108-
Authorization: expect.stringContaining("Bearer"),
109+
Authorization: "Bearer mockToken",
109110
Accept: "application/json",
110-
"User-Agent": expect.stringContaining("AtlasMCP"),
111+
"User-Agent": "test-user-agent",
111112
},
112113
body: JSON.stringify(mockEvents),
113114
});
@@ -128,7 +129,7 @@ describe("ApiClient", () => {
128129
headers: {
129130
"Content-Type": "application/json",
130131
Accept: "application/json",
131-
"User-Agent": expect.stringContaining("AtlasMCP"),
132+
"User-Agent": "test-user-agent",
132133
},
133134
body: JSON.stringify(mockEvents),
134135
});
@@ -149,7 +150,7 @@ describe("ApiClient", () => {
149150
headers: {
150151
"Content-Type": "application/json",
151152
Accept: "application/json",
152-
"User-Agent": expect.stringContaining("AtlasMCP"),
153+
"User-Agent": "test-user-agent",
153154
},
154155
body: JSON.stringify(mockEvents),
155156
});

0 commit comments

Comments
 (0)