Skip to content

Commit

Permalink
Fix test regex
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Sep 30, 2024
1 parent f609445 commit 320316d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vertexai/src/methods/generate-content.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ describe('generateContent()', () => {
} as Response);
await expect(
generateContent(fakeApiSettings, 'model', fakeRequestParams)
).to.be.rejectedWith(/firebasevertexai\.googleapis.*my-project/);
).to.be.rejectedWith(
/firebasevertexai\.googleapis[\s\S]*my-project[\s\S]*api-not-enabled/
);
expect(mockFetch).to.be.called;
});
});

0 comments on commit 320316d

Please sign in to comment.