Skip to content

Commit 610dc77

Browse files
committed
fix conflicts
1 parent f385057 commit 610dc77

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ export class TestController {
417417
telemetry.ui_click.emit({ elementId: 'unitTestGeneration_cancelFixingTest' })
418418
this.messenger.sendChatInputEnabled(data.tabID, true)
419419
await this.sessionCleanUp()
420+
break
420421
case ButtonActions.PROVIDE_FEEDBACK:
421422
getFeedbackCommentData = `Q Test Generation: RequestId: ${this.sessionStorage.getSession().startTestGenerationRequestId}, TestGenerationJobId: ${this.sessionStorage.getSession().testGenerationJob?.testGenerationJobId}`
422423
void submitFeedback(placeholder, 'Amazon Q', getFeedbackCommentData)
423424
telemetry.ui_click.emit({ elementId: 'unitTestGeneration_provideFeedback' })
424-
break
425425
}
426426
}
427427
// This function handles actions if user gives any input from the chatInput box
@@ -995,9 +995,8 @@ export class TestController {
995995
}
996996
}
997997

998-
// TODO: Check if there are more cases to
999-
if yes create a enum or type for step
1000-
private async endSession(data: any, step: FollowUpTypes) {
998+
// TODO: Check if there are more cases to if yes create a enum or type for step
999+
private async endSession(data: any, step?: FollowUpTypes) {
10011000
this.messenger.sendMessage(
10021001
'Unit test generation completed.',
10031002
data.tabID,
@@ -1358,7 +1357,7 @@ export class TestController {
13581357
}
13591358
: undefined,
13601359
codeReference: session.references.map(
1361-
(ref: ShortAnswerReference) =>
1360+
(ref: Reference) =>
13621361
({
13631362
...ref,
13641363
information: `${ref.licenseName} - <a href="${ref.url}">${ref.repository}</a>`,

packages/core/src/codewhisperer/service/testGenHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
TestGenTimedOutError,
2323
} from '../../amazonqTest/error'
2424
import { getMd5, uploadArtifactToS3 } from './securityScanHandler'
25-
import { testGenState, Reference } from '../models/model'
25+
import { ShortAnswer, testGenState, Reference } from '../models/model'
2626
import { ChatSessionManager } from '../../amazonqTest/chat/storages/chatSession'
2727
import { createCodeWhispererChatStreamingClient } from '../../shared/clients/codewhispererChatClient'
2828
import { downloadExportResultArchive } from '../../shared/utilities/download'
@@ -158,7 +158,7 @@ export async function pollTestJobStatus(
158158
progressRate,
159159
})
160160
}
161-
161+
162162
const shortAnswerString = resp.testGenerationJob?.shortAnswer
163163
if (shortAnswerString) {
164164
const parsedShortAnswer = JSON.parse(shortAnswerString)

0 commit comments

Comments
 (0)