@@ -50,10 +50,12 @@ describe('crossFileContextUtil', function () {
5050 const myCurrentEditor = await toTextEditor ( '' , 'TargetFile.java' , tempFolder , {
5151 preview : false ,
5252 } )
53+
54+ await assertTabCount ( 2 )
55+
5356 const actual = await crossFile . fetchSupplementalContextForSrc ( myCurrentEditor , fakeCancellationToken )
5457 assert . ok ( actual )
55- assert . ok ( actual . supplementalContextItems . length === 3 )
56-
58+ assert . strictEqual ( actual . supplementalContextItems . length , 3 )
5759 assert . strictEqual ( actual . supplementalContextItems [ 0 ] . content . split ( '\n' ) . length , 50 )
5860 assert . strictEqual ( actual . supplementalContextItems [ 1 ] . content . split ( '\n' ) . length , 50 )
5961 assert . strictEqual ( actual . supplementalContextItems [ 2 ] . content . split ( '\n' ) . length , 50 )
@@ -64,6 +66,9 @@ describe('crossFileContextUtil', function () {
6466 const myCurrentEditor = await toTextEditor ( '' , 'TargetFile.java' , tempFolder , {
6567 preview : false ,
6668 } )
69+
70+ await assertTabCount ( 2 )
71+
6772 sinon . stub ( FeatureConfigProvider . instance , 'getProjectContextGroup' ) . returns ( 't1' )
6873 sinon
6974 . stub ( LspController . instance , 'queryInlineProjectContext' )
@@ -78,7 +83,7 @@ describe('crossFileContextUtil', function () {
7883
7984 const actual = await crossFile . fetchSupplementalContextForSrc ( myCurrentEditor , fakeCancellationToken )
8085 assert . ok ( actual )
81- assert . ok ( actual . supplementalContextItems . length === 4 )
86+ assert . strictEqual ( actual . supplementalContextItems . length , 4 )
8287 assert . strictEqual ( actual ?. strategy , 'codemap' )
8388 assert . deepEqual ( actual ?. supplementalContextItems [ 0 ] , {
8489 content : 'foo' ,
@@ -96,6 +101,9 @@ describe('crossFileContextUtil', function () {
96101 const myCurrentEditor = await toTextEditor ( '' , 'TargetFile.java' , tempFolder , {
97102 preview : false ,
98103 } )
104+
105+ await assertTabCount ( 2 )
106+
99107 sinon . stub ( FeatureConfigProvider . instance , 'getProjectContextGroup' ) . returns ( 't2' )
100108 sinon
101109 . stub ( LspController . instance , 'queryInlineProjectContext' )
@@ -130,7 +138,7 @@ describe('crossFileContextUtil', function () {
130138
131139 const actual = await crossFile . fetchSupplementalContextForSrc ( myCurrentEditor , fakeCancellationToken )
132140 assert . ok ( actual )
133- assert . ok ( actual . supplementalContextItems . length === 5 )
141+ assert . strictEqual ( actual . supplementalContextItems . length , 5 )
134142 assert . strictEqual ( actual ?. strategy , 'bm25' )
135143
136144 assert . deepEqual ( actual ?. supplementalContextItems [ 0 ] , {
0 commit comments