@@ -1811,7 +1811,7 @@ describeSpec('Listens:', [], () => {
1811
1811
) ;
1812
1812
1813
1813
specTest (
1814
- 'Query with resume target can pass in expectedCount to listen request ' ,
1814
+ 'Resuming a query should specify expectedCount when adding the target ' ,
1815
1815
[ ] ,
1816
1816
( ) => {
1817
1817
const query1 = query ( 'collection' ) ;
@@ -1845,7 +1845,7 @@ describeSpec('Listens:', [], () => {
1845
1845
) ;
1846
1846
1847
1847
specTest (
1848
- 'ExpectedCount should equal to the number of documents that last matched the query at the resume token ' ,
1848
+ 'Resuming a query should specify expectedCount that does not include pending mutations ' ,
1849
1849
[ ] ,
1850
1850
( ) => {
1851
1851
const query1 = query ( 'collection' ) ;
@@ -1879,22 +1879,14 @@ describeSpec('Listens:', [], () => {
1879
1879
( ) => {
1880
1880
const query1 = query ( 'collection' ) ;
1881
1881
const docA = doc ( 'collection/a' , 1000 , { key : 'a' } ) ;
1882
- const docBLocal = doc ( 'collection/b' , 1000 , {
1883
- key : 'b'
1884
- } ) . setHasLocalMutations ( ) ;
1885
1882
1886
1883
return spec ( )
1887
1884
. withGCEnabled ( false )
1888
1885
. userListens ( query1 )
1889
1886
. watchAcksFull ( query1 , 1000 , docA )
1890
1887
. expectEvents ( query1 , { added : [ docA ] } )
1891
- . userSets ( 'collection/b' , { key : 'b' } )
1892
- . expectEvents ( query1 , {
1893
- hasPendingWrites : true ,
1894
- added : [ docBLocal ]
1895
- } )
1896
1888
. disableNetwork ( )
1897
- . expectEvents ( query1 , { hasPendingWrites : true , fromCache : true } )
1889
+ . expectEvents ( query1 , { fromCache : true } )
1898
1890
. enableNetwork ( )
1899
1891
. restoreListen ( query1 , 'resume-token-1000' , 1 ) ;
1900
1892
}
0 commit comments