Skip to content

Commit 28e50be

Browse files
author
David Hasani
committed
fix test
1 parent eb39fc1 commit 28e50be

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

packages/amazonq/test/unit/amazonqGumby/transformApiHandler.test.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -131,27 +131,16 @@ describe('Amazon Q Transform - transformApiHandler tests', function () {
131131
it('will return undefined if step status is NOT AWAITING_CLIENT_ACTION', function () {
132132
const transformationStepsFixture: TransformationStep[] = [
133133
{
134-
id: 'dummy-id',
135-
name: 'Step name',
136-
description: 'Step description',
134+
id: 'random-id',
135+
name: 'not-awaiting-client-action step name',
136+
description: 'not-awaiting-client-action step description',
137137
status: 'TRANSFORMING',
138138
progressUpdates: [
139139
{
140-
name: 'Progress update name',
140+
name: 'some progress update name',
141141
status: 'SOMETHING-BESIDES-AWAITING_CLIENT_ACTION',
142-
description: 'Progress update description',
143-
startTime: new Date(),
144-
endTime: new Date(),
145-
downloadArtifacts: [
146-
{
147-
downloadArtifactId: 'some-download-artifact-id',
148-
downloadArtifactType: 'some-download-artifact-type',
149-
},
150-
],
151142
},
152143
],
153-
startTime: new Date(),
154-
endTime: new Date(),
155144
},
156145
]
157146
const progressUpdate = findDownloadArtifactProgressUpdate(transformationStepsFixture)

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,8 @@ export const skipUnitTestsFormTitle = 'Choose to skip unit tests'
806806

807807
export const selectiveTransformationFormTitle = 'Choose how to receive proposed changes'
808808

809-
// TO-DO: get text from Allie for this
810809
export const skipUnitTestsFormMessage =
811-
'I will build your project using `mvn clean test` by default. If you would like me to build your project without running unit tests, I will use `mvn clean test-compile`.'
810+
'I will build generated code in your local environment, not on the server side. For information on how I scan code to reduce security risks associated with building the code in your local environment, see the [Amazon Q Developer documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-transformation.html#java-local-builds).\n\nI will build your project using `mvn clean test` by default. If you would like me to build your project without running unit tests, I will use `mvn clean test-compile`.'
812811

813812
export const runUnitTestsMessage = 'Run unit tests'
814813

0 commit comments

Comments
 (0)