@@ -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