Skip to content

Commit

Permalink
updating test import and adding changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarakad-aws committed Nov 18, 2024
1 parent 261642a commit fbcee84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "Feature(Amazon Q Code Transformation): allow users to view results in 5 smaller diffs"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { DescriptionContent } from 'aws-core-vscode/codewhisperer'
import path from 'path'
import { getTestResourceFilePath } from './amazonQGumbyUtil'
import { fs } from 'aws-core-vscode/shared'
// eslint-disable-next-line no-restricted-imports
import { createTestWorkspace } from '../../../../core/dist/src/test/testUtil'
import { createTestWorkspace } from 'aws-core-vscode/test'

describe('DiffModel', function () {
let parsedTestDescriptions: DescriptionContent
Expand Down Expand Up @@ -83,8 +82,6 @@ describe('DiffModel', function () {
const change = testDiffModel.patchFileNodes[0].children[0]

assert.strictEqual(change instanceof ModifiedChangeNode, true)

await fs.delete(path.join(workspaceFolder.uri.fsPath, 'README.md'), { recursive: true })
})

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 () {
Expand Down Expand Up @@ -115,7 +112,5 @@ describe('DiffModel', function () {
const change = testDiffModel.patchFileNodes[0].children[0]

assert.strictEqual(change instanceof ModifiedChangeNode, true)

await fs.delete(path.join(workspaceFolder.uri.fsPath, 'README.md'), { recursive: true })
})
})

0 comments on commit fbcee84

Please sign in to comment.