@@ -32,6 +32,7 @@ describe("ApiClient", () => {
32
32
clientId : "test-client-id" ,
33
33
clientSecret : "test-client-secret" ,
34
34
} ,
35
+ userAgent : "test-user-agent" ,
35
36
} ) ;
36
37
37
38
// @ts -expect-error accessing private property for testing
@@ -105,9 +106,9 @@ describe("ApiClient", () => {
105
106
method : "POST" ,
106
107
headers : {
107
108
"Content-Type" : "application/json" ,
108
- Authorization : expect . stringContaining ( "Bearer" ) ,
109
+ Authorization : "Bearer mockToken" ,
109
110
Accept : "application/json" ,
110
- "User-Agent" : expect . stringContaining ( "AtlasMCP" ) ,
111
+ "User-Agent" : "test-user-agent" ,
111
112
} ,
112
113
body : JSON . stringify ( mockEvents ) ,
113
114
} ) ;
@@ -128,7 +129,7 @@ describe("ApiClient", () => {
128
129
headers : {
129
130
"Content-Type" : "application/json" ,
130
131
Accept : "application/json" ,
131
- "User-Agent" : expect . stringContaining ( "AtlasMCP" ) ,
132
+ "User-Agent" : "test-user-agent" ,
132
133
} ,
133
134
body : JSON . stringify ( mockEvents ) ,
134
135
} ) ;
@@ -149,7 +150,7 @@ describe("ApiClient", () => {
149
150
headers : {
150
151
"Content-Type" : "application/json" ,
151
152
Accept : "application/json" ,
152
- "User-Agent" : expect . stringContaining ( "AtlasMCP" ) ,
153
+ "User-Agent" : "test-user-agent" ,
153
154
} ,
154
155
body : JSON . stringify ( mockEvents ) ,
155
156
} ) ;
0 commit comments