From d6c2229f4fecaa4749dd6468f90832e3840a77a3 Mon Sep 17 00:00:00 2001 From: Neha Tarakad Date: Tue, 19 Nov 2024 19:58:18 -0800 Subject: [PATCH] updated test file --- .../unit/amazonqGumby/transformationResultsHandler.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts b/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts index 4f2342caafa..4e1ce627bd3 100644 --- a/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts +++ b/packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts @@ -57,8 +57,6 @@ describe('DiffModel', function () { const fileAmount = 1 const workspaceFolder = await createTestWorkspace(fileAmount, { fileContent: '' }) - sinon.replace(fs, 'exists', async (path) => true) - await fs.writeFile( path.join(workspaceFolder.uri.fsPath, 'README.md'), 'This guide walks you through using Gradle to build a simple Java project.' @@ -82,13 +80,11 @@ describe('DiffModel', function () { }) it('WHEN parsing a diff patch where diff.json is not present and a file was modified THEN returns an array representing the modified file', async function () { - const testDiffModel = new DiffModel() //try to see if you can reuse that test model from above + const testDiffModel = new DiffModel() const fileAmount = 1 const workspaceFolder = await createTestWorkspace(fileAmount, { fileContent: '' }) - sinon.replace(fs, 'exists', async (path) => true) - await fs.writeFile( path.join(workspaceFolder.uri.fsPath, 'README.md'), 'This guide walks you through using Gradle to build a simple Java project.'