@@ -20,7 +20,7 @@ describe(`CollectionSubscription status tracking`, () => {
2020 subscription . unsubscribe ( )
2121 } )
2222
23- it ( `status changes to 'loadingMore ' when requestSnapshot triggers a promise` , async ( ) => {
23+ it ( `status changes to 'loadingSubset ' when requestSnapshot triggers a promise` , async ( ) => {
2424 let resolveLoadSubset : ( ) => void
2525 const loadSubsetPromise = new Promise < void > ( ( resolve ) => {
2626 resolveLoadSubset = resolve
@@ -49,8 +49,8 @@ describe(`CollectionSubscription status tracking`, () => {
4949 // Trigger a snapshot request that will call loadSubset
5050 subscription . requestSnapshot ( { optimizedOnly : false } )
5151
52- // Status should now be loadingMore
53- expect ( subscription . status ) . toBe ( `loadingMore ` )
52+ // Status should now be loadingSubset
53+ expect ( subscription . status ) . toBe ( `loadingSubset ` )
5454
5555 // Resolve the load more promise
5656 resolveLoadSubset ! ( )
@@ -87,7 +87,7 @@ describe(`CollectionSubscription status tracking`, () => {
8787 } )
8888
8989 subscription . requestSnapshot ( { optimizedOnly : false } )
90- expect ( subscription . status ) . toBe ( `loadingMore ` )
90+ expect ( subscription . status ) . toBe ( `loadingSubset ` )
9191
9292 resolveLoadSubset ! ( )
9393 await flushPromises ( )
@@ -96,7 +96,7 @@ describe(`CollectionSubscription status tracking`, () => {
9696 subscription . unsubscribe ( )
9797 } )
9898
99- it ( `concurrent promises keep status as 'loadingMore ' until all resolve` , async ( ) => {
99+ it ( `concurrent promises keep status as 'loadingSubset ' until all resolve` , async ( ) => {
100100 let resolveLoadSubset1 : ( ) => void
101101 let resolveLoadSubset2 : ( ) => void
102102 let callCount = 0
@@ -132,18 +132,18 @@ describe(`CollectionSubscription status tracking`, () => {
132132
133133 // Trigger first load
134134 subscription . requestSnapshot ( { optimizedOnly : false } )
135- expect ( subscription . status ) . toBe ( `loadingMore ` )
135+ expect ( subscription . status ) . toBe ( `loadingSubset ` )
136136
137137 // Trigger second load
138138 subscription . requestSnapshot ( { optimizedOnly : false } )
139- expect ( subscription . status ) . toBe ( `loadingMore ` )
139+ expect ( subscription . status ) . toBe ( `loadingSubset ` )
140140
141141 // Resolve first promise
142142 resolveLoadSubset1 ! ( )
143143 await flushPromises ( )
144144
145145 // Should still be loading because second promise is pending
146- expect ( subscription . status ) . toBe ( `loadingMore ` )
146+ expect ( subscription . status ) . toBe ( `loadingSubset ` )
147147
148148 // Resolve second promise
149149 resolveLoadSubset2 ! ( )
@@ -193,15 +193,15 @@ describe(`CollectionSubscription status tracking`, () => {
193193 expect ( statusChanges ) . toHaveLength ( 1 )
194194 expect ( statusChanges [ 0 ] ) . toEqual ( {
195195 previous : `ready` ,
196- current : `loadingMore ` ,
196+ current : `loadingSubset ` ,
197197 } )
198198
199199 resolveLoadSubset ! ( )
200200 await flushPromises ( )
201201
202202 expect ( statusChanges ) . toHaveLength ( 2 )
203203 expect ( statusChanges [ 1 ] ) . toEqual ( {
204- previous : `loadingMore ` ,
204+ previous : `loadingSubset ` ,
205205 current : `ready` ,
206206 } )
207207
@@ -235,7 +235,7 @@ describe(`CollectionSubscription status tracking`, () => {
235235 } )
236236
237237 subscription . requestSnapshot ( { optimizedOnly : false } )
238- expect ( subscription . status ) . toBe ( `loadingMore ` )
238+ expect ( subscription . status ) . toBe ( `loadingSubset ` )
239239
240240 // Reject the promise
241241 rejectLoadSubset ! ( new Error ( `Load failed` ) )
0 commit comments