Skip to content

Commit

Permalink
perf: dispose chat controller in chatController tests (#717)
Browse files Browse the repository at this point in the history
Co-authored-by: Francesco Piccoli <[email protected]>
  • Loading branch information
francescoopiccoli and Francesco Piccoli authored Jan 13, 2025
1 parent ea57071 commit b0e6b78
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ describe('ChatController', () => {
testFeatures.workspace.getTextDocument = sinon.stub()
})

afterEach(() => {
chatController.dispose()
})

it('handles regular insertion correctly', async () => {
const document: TextDocument = TextDocument.create('test.ts', 'typescript', 1, ' ')
testFeatures.workspace.getTextDocument.resolves(document)
Expand Down

0 comments on commit b0e6b78

Please sign in to comment.