Skip to content

Commit 6e2976e

Browse files
authored
test(amazonq): minor test fix (#7819)
## Problem Failing 1 test ## Solution Fixed it --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 64edd0e commit 6e2976e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import nodeFs from 'fs' // eslint-disable-line no-restricted-imports
1717
import { postTransformationJob } from '../../codewhisperer/commands/startTransformByQ'
1818
import * as transformApiHandler from '../../codewhisperer/service/transformByQ/transformApiHandler'
1919
import * as vscode from 'vscode'
20+
import * as datetime from '../../shared/datetime'
2021

2122
describe('Transformation Job History', function () {
2223
let transformationHub: TransformationHubViewProvider
@@ -193,6 +194,7 @@ describe('Transformation Job History', function () {
193194

194195
it('Limits history to 10 most recent jobs', async function () {
195196
fsExistsStub.resolves(true)
197+
sinon.stub(datetime, 'isWithin30Days').returns(true)
196198

197199
// Create 15 job entries
198200
let mockHistoryContent = 'date\tproject_name\tstatus\tduration\tdiff_patch\tsummary\tjob_id\n'

0 commit comments

Comments
 (0)