Skip to content

Commit 33d96fa

Browse files
committed
chore: tests for macos
1 parent 94bda1f commit 33d96fa

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

packages/firestore/e2e/firestore.e2e.js

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,19 @@ describe('firestore()', function () {
921921

922922
it('snapshotsInSync fires', async function () {
923923
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+
}
925937
}
926938

927939
const events = [];
@@ -946,7 +958,19 @@ describe('firestore()', function () {
946958

947959
it('handles multiple writes and unsubscribe correctly', async function () {
948960
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+
}
950974
}
951975

952976
const events = [];

0 commit comments

Comments
 (0)