Skip to content

Commit d9f7093

Browse files
committed
Fix in chat message
1 parent 0b4dc1a commit d9f7093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/amazonqTest/chat/controller/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,12 @@ export class TestController {
444444
/*
445445
For Re:Invent 2024 we are supporting only java and python for unit test generation, rest of the languages shows the similar experience as CWC
446446
*/
447-
if (!['java', 'python'].includes(language) || workspaceFolder == undefined) {
447+
if (!['java', 'python'].includes(language) || workspaceFolder === undefined) {
448448
let unsupportedMessage: string
449449
const unsupportedLanguage = language ? language.charAt(0).toUpperCase() + language.slice(1) : ''
450450
if (!workspaceFolder) {
451451
// File is outside of workspace
452-
unsupportedMessage = `<span style="color: #EE9D28;">&#9888;<b>I can't generate tests for because ${fileName} is outside of workspace scope.</b><br></span> I can still provide examples, instructions and code suggestions.`
452+
unsupportedMessage = `<span style="color: #EE9D28;">&#9888;<b>I can't generate tests for ${fileName}</b> because the file is outside of workspace scope.<br></span> I can still provide examples, instructions and code suggestions.`
453453
} else if (unsupportedLanguage) {
454454
unsupportedMessage = `<span style="color: #EE9D28;">&#9888;<b>I'm sorry, but /test only supports Python and Java</b><br></span> While ${unsupportedLanguage} is not supported, I will generate a suggestion below.`
455455
} else {

0 commit comments

Comments
 (0)