File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
packages/vertexai/src/models Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,7 @@ describe('GenerativeModel', () => {
113
113
match . any ,
114
114
false ,
115
115
match ( ( value : string ) => {
116
- return (
117
- value . includes ( 'be friendly' )
118
- ) ;
116
+ return value . includes ( 'be friendly' ) ;
119
117
} ) ,
120
118
{ }
121
119
) ;
@@ -199,7 +197,7 @@ describe('GenerativeModel', () => {
199
197
it ( 'passes text-only systemInstruction through to chat.sendMessage' , async ( ) => {
200
198
const genModel = new GenerativeModel ( fakeVertexAI , {
201
199
model : 'my-model' ,
202
- systemInstruction : " be friendly"
200
+ systemInstruction : ' be friendly'
203
201
} ) ;
204
202
expect ( genModel . systemInstruction ?. parts [ 0 ] . text ) . to . equal ( 'be friendly' ) ;
205
203
const mockResponse = getMockResponse (
@@ -215,9 +213,7 @@ describe('GenerativeModel', () => {
215
213
match . any ,
216
214
false ,
217
215
match ( ( value : string ) => {
218
- return (
219
- value . includes ( 'be friendly' )
220
- ) ;
216
+ return value . includes ( 'be friendly' ) ;
221
217
} ) ,
222
218
{ }
223
219
) ;
You can’t perform that action at this time.
0 commit comments