Skip to content

Commit

Permalink
test(amazonq): test failure supplementalContext.test.ts #6021
Browse files Browse the repository at this point in the history
## Problem
same issue #6019 is trying to fix
misuse of `sinon.alwaysReturned()`

## Solution
`sinon.returns()`
  • Loading branch information
Will-ShaoHua authored Nov 14, 2024
1 parent 1d86309 commit 545dc4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('supplementalContextUtil', function () {

beforeEach(async function () {
testFolder = await TestFolder.create()
sinon.stub(FeatureConfigProvider.instance, 'getProjectContextGroup').alwaysReturned('control')
sinon.stub(FeatureConfigProvider.instance, 'getProjectContextGroup').returns('control')
})

afterEach(function () {
Expand Down

0 comments on commit 545dc4f

Please sign in to comment.