Skip to content

Commit 545dc4f

Browse files
authored
test(amazonq): test failure supplementalContext.test.ts #6021
## Problem same issue #6019 is trying to fix misuse of `sinon.alwaysReturned()` ## Solution `sinon.returns()`
1 parent 1d86309 commit 545dc4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/amazonq/test/unit/codewhisperer/util/supplemetalContextUtil.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('supplementalContextUtil', function () {
2121

2222
beforeEach(async function () {
2323
testFolder = await TestFolder.create()
24-
sinon.stub(FeatureConfigProvider.instance, 'getProjectContextGroup').alwaysReturned('control')
24+
sinon.stub(FeatureConfigProvider.instance, 'getProjectContextGroup').returns('control')
2525
})
2626

2727
afterEach(function () {

0 commit comments

Comments
 (0)