Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Apr 26, 2024
1 parent 69ec806 commit 01b2231
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/vertexai/src/models/generative-model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ describe('GenerativeModel', () => {
match.any,
false,
match((value: string) => {
return (
value.includes('be friendly')
);
return value.includes('be friendly');
}),
{}
);
Expand Down Expand Up @@ -199,7 +197,7 @@ describe('GenerativeModel', () => {
it('passes text-only systemInstruction through to chat.sendMessage', async () => {
const genModel = new GenerativeModel(fakeVertexAI, {
model: 'my-model',
systemInstruction: "be friendly"
systemInstruction: 'be friendly'
});
expect(genModel.systemInstruction?.parts[0].text).to.equal('be friendly');
const mockResponse = getMockResponse(
Expand All @@ -215,9 +213,7 @@ describe('GenerativeModel', () => {
match.any,
false,
match((value: string) => {
return (
value.includes('be friendly')
);
return value.includes('be friendly');
}),
{}
);
Expand Down

0 comments on commit 01b2231

Please sign in to comment.