File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ describe('Gemini Client (client.ts)', () => {
339
339
describe ( 'resetChat' , ( ) => {
340
340
it ( 'should create a new chat session, clearing the old history' , async ( ) => {
341
341
// 1. Get the initial chat instance and add some history.
342
- const initialChat = await client . getChat ( ) ;
342
+ const initialChat = client . getChat ( ) ;
343
343
const initialHistory = await client . getHistory ( ) ;
344
344
await client . addHistory ( {
345
345
role : 'user' ,
@@ -354,7 +354,7 @@ describe('Gemini Client (client.ts)', () => {
354
354
await client . resetChat ( ) ;
355
355
356
356
// 3. Get the new chat instance and its history.
357
- const newChat = await client . getChat ( ) ;
357
+ const newChat = client . getChat ( ) ;
358
358
const newHistory = await client . getHistory ( ) ;
359
359
360
360
// 4. Assert that the chat instance is new and the history is reset.
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ export class GeminiClient {
100
100
101
101
async resetChat ( ) : Promise < void > {
102
102
this . chat = await this . startChat ( ) ;
103
- await this . chat ;
104
103
}
105
104
106
105
private async getEnvironment ( ) : Promise < Part [ ] > {
You can’t perform that action at this time.
0 commit comments