Skip to content

Commit 196539f

Browse files
committed
removing redundant unit test
1 parent ff758b2 commit 196539f

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,6 @@ describe('DiffModel', function () {
5151
assert.strictEqual(change instanceof AddedChangeNode, true)
5252
})
5353

54-
it('WHEN parsing a diff patch with no diff.json where a file was added THEN returns an array representing the added file', async function () {
55-
const testDiffModel = new DiffModel()
56-
57-
const workspacePath = 'workspace'
58-
59-
sinon.replace(fs, 'exists', async (path) => {
60-
const pathStr = path.toString()
61-
if (pathStr.includes(workspacePath)) {
62-
return false
63-
}
64-
65-
return true
66-
})
67-
68-
testDiffModel.parseDiff(
69-
getTestResourceFilePath('resources/files/addedFile.diff'),
70-
workspacePath,
71-
parsedTestDescription
72-
)
73-
74-
assert.strictEqual(testDiffModel.patchFileNodes.length, 1)
75-
assert.strictEqual(testDiffModel.patchFileNodes[0].children.length, 1)
76-
assert.strictEqual(testDiffModel.patchFileNodes[0].patchFilePath, parsedTestDescription.name)
77-
const change = testDiffModel.patchFileNodes[0].children[0]
78-
79-
assert.strictEqual(change instanceof AddedChangeNode, true)
80-
})
81-
8254
it('WHEN parsing a diff patch where a file was modified THEN returns an array representing the modified file', async function () {
8355
const testDiffModel = new DiffModel()
8456

0 commit comments

Comments
 (0)