Skip to content

Commit efe5292

Browse files
committed
another try
1 parent 8a3c8ff commit efe5292

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ describe('crossFileContextUtil', function () {
4141
tempFolder = (await createTestWorkspaceFolder()).uri.fsPath
4242
})
4343

44+
afterEach(async function () {
45+
sinon.restore()
46+
})
47+
4448
it('for control group, should return opentabs context where there will be 3 chunks and each chunk should contains 50 lines', async function () {
45-
sinon.stub(FeatureConfigProvider.instance, 'getProjectContextGroup').alwaysReturned('control')
49+
sinon.stub(FeatureConfigProvider.instance, 'getProjectContextGroup').returns('control')
4650
await toTextEditor(aStringWithLineCount(200), 'CrossFile.java', tempFolder, { preview: false })
4751
const myCurrentEditor = await toTextEditor('', 'TargetFile.java', tempFolder, {
4852
preview: false,

0 commit comments

Comments
 (0)