Skip to content

Commit 2348a10

Browse files
author
Jiatong Li
committed
fix(codewhisperer): fix extractContextForCodeWhisperer tests
1 parent ce548dd commit 2348a10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/amazonq/test/unit/codewhisperer/util/editorContext.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('editorContext', function () {
3434
const editor = createMockTextEditor('import math\ndef two_sum(nums, target):\n', 'test.py', 'python', 1, 17)
3535
const actual = EditorContext.extractContextForCodeWhisperer(editor)
3636
const expected: codewhispererClient.FileContext = {
37+
fileUri: 'file:///test.py',
3738
filename: 'test.py',
3839
programmingLanguage: {
3940
languageName: 'python',
@@ -54,6 +55,7 @@ describe('editorContext', function () {
5455
)
5556
const actual = EditorContext.extractContextForCodeWhisperer(editor)
5657
const expected: codewhispererClient.FileContext = {
58+
fileUri: 'file:///test.py',
5759
filename: 'test.py',
5860
programmingLanguage: {
5961
languageName: 'python',

0 commit comments

Comments
 (0)