@@ -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 ( ) {
@@ -31,8 +31,6 @@ describe('supplementalContextUtil', function () {
3131 describe ( 'fetchSupplementalContext' , function ( ) {
3232 describe ( 'openTabsContext' , function ( ) {
3333 it ( 'opentabContext should include chunks if non empty' , async function ( ) {
34- sinon . stub ( FeatureConfigProvider . instance , 'getProjectContextGroup' ) . alwaysReturned ( 'control' )
35-
3634 await toTextEditor ( 'class Foo' , 'Foo.java' , testFolder . path , { preview : false } )
3735 await toTextEditor ( 'class Bar' , 'Bar.java' , testFolder . path , { preview : false } )
3836 await toTextEditor ( 'class Baz' , 'Baz.java' , testFolder . path , { preview : false } )
@@ -46,8 +44,6 @@ describe('supplementalContextUtil', function () {
4644 } )
4745
4846 it ( 'opentabsContext should filter out empty chunks' , async function ( ) {
49- sinon . stub ( FeatureConfigProvider . instance , 'getProjectContextGroup' ) . alwaysReturned ( 'control' )
50-
5147 // open 3 files as supplemental context candidate files but none of them have contents
5248 await toTextEditor ( '' , 'Foo.java' , testFolder . path , { preview : false } )
5349 await toTextEditor ( '' , 'Bar.java' , testFolder . path , { preview : false } )
0 commit comments