Skip to content

Commit b3b0e2d

Browse files
author
David Hasani
committed
remove unneeded file/test
1 parent 54cf64c commit b3b0e2d

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

packages/amazonq/test/unit/amazonqGumby/resources/files/diff.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,4 @@ describe('DiffModel', function () {
6363

6464
assert.strictEqual(change instanceof ModifiedChangeNode, true)
6565
})
66-
67-
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 () {
68-
const testDiffModel = new DiffModel()
69-
70-
const fileAmount = 1
71-
const workspaceFolder = await createTestWorkspace(fileAmount, { fileContent: '' })
72-
73-
await fs.writeFile(
74-
path.join(workspaceFolder.uri.fsPath, 'README.md'),
75-
'This guide walks you through using Gradle to build a simple Java project.'
76-
)
77-
78-
testDiffModel.parseDiff(
79-
getTestResourceFilePath('resources/files/modifiedFile.diff'),
80-
workspaceFolder.uri.fsPath
81-
)
82-
83-
assert.strictEqual(
84-
testDiffModel.patchFileNodes[0].patchFilePath,
85-
getTestResourceFilePath('resources/files/modifiedFile.diff')
86-
)
87-
assert(testDiffModel.patchFileNodes[0].label.endsWith('modifiedFile.diff'))
88-
const change = testDiffModel.patchFileNodes[0].children[0]
89-
90-
assert.strictEqual(change instanceof ModifiedChangeNode, true)
91-
})
9266
})

0 commit comments

Comments
 (0)