Skip to content

Commit 9a63aa5

Browse files
committed
fix diff test
1 parent 88b0414 commit 9a63aa5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/core/src/test/amazonq/common/diff.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ describe('diff', () => {
6161
await openDeletedDiff(filePath, name, tabId)
6262

6363
const expectedPath = vscode.Uri.file(filePath)
64-
assert.ok(executeCommandSpy.calledWith('vscode.open', expectedPath, {}, `${name} (Deleted)`))
64+
assert.ok(executeCommandSpy.calledWith('vscode.diff', expectedPath, expectedPath, `${name} (Deleted)`))
6565
})
6666

6767
it('file does not exists locally', async () => {
6868
sandbox.stub(FileSystem.prototype, 'exists').resolves(false)
6969
await openDeletedDiff(filePath, name, tabId)
7070

7171
const expectedPath = createAmazonQUri('empty', tabId)
72-
assert.ok(executeCommandSpy.calledWith('vscode.open', expectedPath, {}, `${name} (Deleted)`))
72+
assert.ok(executeCommandSpy.calledWith('vscode.open', expectedPath, expectedPath, `${name} (Deleted)`))
7373
})
7474
})
7575

packages/core/src/test/amazonqFeatureDev/controllers/chat/controller.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ describe('Controller', () => {
402402
}
403403

404404
describe('processErrorChatMessage', function () {
405+
// TODO: fix disablePreviousFileList error
405406
const runs = [
406407
{ name: 'ContentLengthError', error: new ContentLengthError() },
407408
{

0 commit comments

Comments
 (0)