@@ -83,14 +83,12 @@ describe('Top level API', () => {
83
83
it ( 'getGenerativeModel throws if no appId is provided' , ( ) => {
84
84
const fakeVertexNoProject = {
85
85
...fakeVertexAI ,
86
- app : { options : { apiKey : 'my-key' , projectId : 'my-projectid' } }
86
+ app : { options : { apiKey : 'my-key' , projectId : 'my-projectid' } }
87
87
} as VertexAI ;
88
88
try {
89
89
getGenerativeModel ( fakeVertexNoProject , { model : 'my-model' } ) ;
90
90
} 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 ) ;
94
92
expect ( ( e as VertexAIError ) . message ) . equals (
95
93
`VertexAI: The "appId" field is empty in the local` +
96
94
` Firebase config. Firebase VertexAI requires this field ` +
@@ -156,9 +154,7 @@ describe('Top level API', () => {
156
154
try {
157
155
getImagenModel ( fakeVertexNoProject , { model : 'my-model' } ) ;
158
156
} 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 ) ;
162
158
expect ( ( e as VertexAIError ) . message ) . equals (
163
159
`VertexAI: The "appId" field is empty in the local` +
164
160
` Firebase config. Firebase VertexAI requires this field ` +
0 commit comments