Skip to content

Commit 5b6ccb3

Browse files
author
David Hasani
committed
fix tests
1 parent 1e8b3b7 commit 5b6ccb3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/core/src/test/amazonqGumby/transformationJobHistory.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('Transformation History Handler', function () {
118118
assert(fileContent)
119119
assert(
120120
fileContent.includes(
121-
'date\tproject_name\tstatus\tduration\tdiff_patch\tsummary\tjob_id\ntransformation_type\tsource_jdk_version\ttarget_jdk_version\tcustom_dependency_version_file_path\tcustom_build_command\n'
121+
'date\tproject_name\tstatus\tduration\tdiff_patch\tsummary\tjob_id\ttransformation_type\tsource_jdk_version\ttarget_jdk_version\tcustom_dependency_version_file_path\tcustom_build_command\n'
122122
)
123123
)
124124
assert(

packages/core/src/test/codewhisperer/commands/transformByQ.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import assert, { fail } from 'assert'
77
import * as vscode from 'vscode'
88
import * as sinon from 'sinon'
9-
import { DB, transformByQState, TransformByQStoppedError } from '../../../codewhisperer/models/model'
9+
import { DB, JDKVersion, transformByQState, TransformByQStoppedError } from '../../../codewhisperer/models/model'
1010
import { stopTransformByQ, finalizeTransformationJob } from '../../../codewhisperer/commands/startTransformByQ'
1111
import { HttpResponse } from 'aws-sdk'
1212
import * as codeWhisperer from '../../../codewhisperer/client/codewhisperer'
@@ -283,6 +283,8 @@ dependencyManagement:
283283

284284
it(`WHEN update job history called THEN returns details of last run job`, async function () {
285285
transformByQState.setJobId('abc-123')
286+
transformByQState.setSourceJDKVersion(JDKVersion.JDK8)
287+
transformByQState.setTargetJDKVersion(JDKVersion.JDK17)
286288
transformByQState.setProjectName('test-project')
287289
transformByQState.setPolledJobStatus('COMPLETED')
288290
transformByQState.setStartTime('05/03/24, 11:35 AM')

0 commit comments

Comments
 (0)