Skip to content

Commit 80489a6

Browse files
committed
Fixed test according to comment
1 parent aa1d086 commit 80489a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/amazonq/test/unit/codewhisperer/service/securityScanHandler.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ const buildMockListCodeScanFindingsResponse = (
6666
})
6767

6868
function getWorkspaceFolder(): string {
69+
if (vscode.workspace.workspaceFolders !== undefined && vscode.workspace.workspaceFolders.length > 0) {
70+
return vscode.workspace.workspaceFolders[0].uri.toString().split('file://')[1]
71+
}
6972
return path.join(__dirname, '../../../../../../core/src/testFixtures/workspaceFolder')
7073
}
7174

0 commit comments

Comments
 (0)