@@ -126,10 +126,6 @@ describe('request methods', () => {
126
126
const headers = await getHeaders ( fakeUrl ) ;
127
127
expect ( headers . get ( 'x-goog-api-key' ) ) . to . equal ( 'key' ) ;
128
128
} ) ;
129
- it ( 'adds app id if automatedDataCollectionEnabled is undefined' , async ( ) => {
130
- const headers = await getHeaders ( fakeUrl ) ;
131
- expect ( headers . get ( 'X-Firebase-AppId' ) ) . to . equal ( 'my-appid' ) ;
132
- } ) ;
133
129
it ( 'adds app id if automatedDataCollectionEnabled is true' , async ( ) => {
134
130
const fakeApiSettings : ApiSettings = {
135
131
apiKey : 'key' ,
@@ -148,7 +144,11 @@ describe('request methods', () => {
148
144
{ }
149
145
) ;
150
146
const headers = await getHeaders ( fakeUrl ) ;
151
- expect ( headers . get ( 'X-Firebase-AppId' ) ) . to . equal ( 'my-appid' ) ;
147
+ expect ( headers . get ( 'X-Firebase-Appid' ) ) . to . equal ( 'my-appid' ) ;
148
+ } ) ;
149
+ it ( 'does not add app id if automatedDataCollectionEnabled is undefined' , async ( ) => {
150
+ const headers = await getHeaders ( fakeUrl ) ;
151
+ expect ( headers . get ( 'X-Firebase-Appid' ) ) . to . be . null ;
152
152
} ) ;
153
153
it ( 'does not add app id if automatedDataCollectionEnabled is false' , async ( ) => {
154
154
const fakeApiSettings : ApiSettings = {
@@ -168,7 +168,7 @@ describe('request methods', () => {
168
168
{ }
169
169
) ;
170
170
const headers = await getHeaders ( fakeUrl ) ;
171
- expect ( headers . get ( 'X-Firebase-AppId ' ) ) . to . be . null ;
171
+ expect ( headers . get ( 'X-Firebase-Appid ' ) ) . to . be . null ;
172
172
} ) ;
173
173
it ( 'adds app check token if it exists' , async ( ) => {
174
174
const headers = await getHeaders ( fakeUrl ) ;
0 commit comments