@@ -83,14 +83,12 @@ describe('Top level API', () => {
8383 it ( 'getGenerativeModel throws if no appId is provided' , ( ) => {
8484 const fakeVertexNoProject = {
8585 ...fakeVertexAI ,
86- app : { options : { apiKey : 'my-key' , projectId : 'my-projectid' } }
86+ app : { options : { apiKey : 'my-key' , projectId : 'my-projectid' } }
8787 } as VertexAI ;
8888 try {
8989 getGenerativeModel ( fakeVertexNoProject , { model : 'my-model' } ) ;
9090 } catch ( e ) {
91- expect ( ( e as VertexAIError ) . code ) . includes (
92- VertexAIErrorCode . NO_APP_ID
93- ) ;
91+ expect ( ( e as VertexAIError ) . code ) . includes ( VertexAIErrorCode . NO_APP_ID ) ;
9492 expect ( ( e as VertexAIError ) . message ) . equals (
9593 `VertexAI: The "appId" field is empty in the local` +
9694 ` Firebase config. Firebase VertexAI requires this field ` +
@@ -156,9 +154,7 @@ describe('Top level API', () => {
156154 try {
157155 getImagenModel ( fakeVertexNoProject , { model : 'my-model' } ) ;
158156 } catch ( e ) {
159- expect ( ( e as VertexAIError ) . code ) . includes (
160- VertexAIErrorCode . NO_APP_ID
161- ) ;
157+ expect ( ( e as VertexAIError ) . code ) . includes ( VertexAIErrorCode . NO_APP_ID ) ;
162158 expect ( ( e as VertexAIError ) . message ) . equals (
163159 `VertexAI: The "appId" field is empty in the local` +
164160 ` Firebase config. Firebase VertexAI requires this field ` +
0 commit comments