Skip to content

Commit 7f14785

Browse files
committed
Run formatter
1 parent 7c62bc1 commit 7f14785

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

packages/vertexai/src/api.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ` +

packages/vertexai/src/models/vertexai-model.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ describe('VertexAIModel', () => {
116116
try {
117117
new TestModel(fakeVertexAI, 'my-model');
118118
} catch (e) {
119-
expect((e as VertexAIError).code).to.equal(
120-
VertexAIErrorCode.NO_APP_ID
121-
);
119+
expect((e as VertexAIError).code).to.equal(VertexAIErrorCode.NO_APP_ID);
122120
}
123121
});
124122
});

0 commit comments

Comments
 (0)