@@ -50,9 +50,9 @@ describe("isLineInFileDiff", () => {
5050describe ( "isFileDiffCollapsed" , ( ) => {
5151 const NO_TOGGLES : ReadonlySet < string > = new Set ( ) ;
5252
53- it ( "folds every file before the reader has touched anything" , ( ) => {
54- expect ( isFileDiffCollapsed ( "a.ts" , null , NO_TOGGLES ) ) . toBe ( true ) ;
55- expect ( isFileDiffCollapsed ( "b.ts" , null , NO_TOGGLES ) ) . toBe ( true ) ;
53+ it ( "opens every file before the reader has touched anything" , ( ) => {
54+ expect ( isFileDiffCollapsed ( "a.ts" , null , NO_TOGGLES ) ) . toBe ( false ) ;
55+ expect ( isFileDiffCollapsed ( "b.ts" , null , NO_TOGGLES ) ) . toBe ( false ) ;
5656 } ) ;
5757
5858 it ( "opens every file once the toolbar has asked for it" , ( ) => {
@@ -66,12 +66,12 @@ describe("isFileDiffCollapsed", () => {
6666 expect ( isFileDiffCollapsed ( "b.ts" , "folded" , NO_TOGGLES ) ) . toBe ( true ) ;
6767 } ) ;
6868
69- it ( "keeps a file the reader opened open as the next slice arrives" , ( ) => {
70- // The file keys grow with every slice, so the answer for one already open must not depend on
71- // how many of them there are by then.
69+ it ( "keeps a file the reader folded closed as the next slice arrives" , ( ) => {
70+ // The file keys grow with every slice, so the answer for one already folded must not depend
71+ // on how many of them there are by then.
7272 const toggled = new Set ( [ "b.ts" ] ) ;
73- expect ( isFileDiffCollapsed ( "b.ts" , null , toggled ) ) . toBe ( false ) ;
74- expect ( isFileDiffCollapsed ( "c.ts" , null , toggled ) ) . toBe ( true ) ;
73+ expect ( isFileDiffCollapsed ( "b.ts" , null , toggled ) ) . toBe ( true ) ;
74+ expect ( isFileDiffCollapsed ( "c.ts" , null , toggled ) ) . toBe ( false ) ;
7575 } ) ;
7676
7777 it ( "still answers to a toggle after either toolbar press" , ( ) => {
0 commit comments