File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -921,7 +921,19 @@ describe('firestore()', function () {
921
921
922
922
it ( 'snapshotsInSync fires' , async function ( ) {
923
923
if ( Platform . other ) {
924
- return ;
924
+ try {
925
+ const testDoc = doc ( getFirestore ( ) , `${ COLLECTION } /snapshotsInSync` ) ;
926
+
927
+ const promise = new Promise ( resolve => {
928
+ const unsubscribe = onSnapshotsInSync ( getFirestore ( ) , ( ) => {
929
+ events . push ( 'onSnapshotsInSync' ) ;
930
+ unsubscribe ( ) ;
931
+ resolve ( ) ;
932
+ } ) ;
933
+ } ) ;
934
+ } catch ( e ) {
935
+ e . message . should . containEql ( 'Not supported in the lite SDK' ) ;
936
+ }
925
937
}
926
938
927
939
const events = [ ] ;
@@ -946,7 +958,19 @@ describe('firestore()', function () {
946
958
947
959
it ( 'handles multiple writes and unsubscribe correctly' , async function ( ) {
948
960
if ( Platform . other ) {
949
- return ;
961
+ try {
962
+ const testDoc = doc ( getFirestore ( ) , `${ COLLECTION } /snapshotsInSync` ) ;
963
+
964
+ const promise = new Promise ( resolve => {
965
+ const unsubscribe = onSnapshotsInSync ( getFirestore ( ) , ( ) => {
966
+ events . push ( 'onSnapshotsInSync' ) ;
967
+ unsubscribe ( ) ;
968
+ resolve ( ) ;
969
+ } ) ;
970
+ } ) ;
971
+ } catch ( e ) {
972
+ e . message . should . containEql ( 'Not supported in the lite SDK' ) ;
973
+ }
950
974
}
951
975
952
976
const events = [ ] ;
You can’t perform that action at this time.
0 commit comments