Skip to content

Commit a5ffd29

Browse files
committed
Remove extra test, added by mistake.
1 parent e33c4f9 commit a5ffd29

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

packages/firestore/test/integration/api/database.test.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,44 +1382,6 @@ apiDescribe('Database', persistence => {
13821382
});
13831383
});
13841384

1385-
//////////////////
1386-
it('onSnapshotsInSync fires after listeners are in sync', () => {
1387-
const testDocs = {
1388-
a: { foo: 1 }
1389-
};
1390-
return withTestCollection(persistence, testDocs, async (coll, db) => {
1391-
let events: string[] = [];
1392-
const gotInitialSnapshot = new Deferred<void>();
1393-
const docA = doc(coll, 'a');
1394-
1395-
onSnapshot(docA, snap => {
1396-
events.push('doc');
1397-
gotInitialSnapshot.resolve();
1398-
});
1399-
await gotInitialSnapshot.promise;
1400-
events = [];
1401-
1402-
const done = new Deferred<void>();
1403-
onSnapshotsInSync(db, () => {
1404-
events.push('snapshots-in-sync');
1405-
if (events.length === 3) {
1406-
// We should have an initial snapshots-in-sync event, then a snapshot
1407-
// event for set(), then another event to indicate we're in sync
1408-
// again.
1409-
expect(events).to.deep.equal([
1410-
'snapshots-in-sync',
1411-
'doc',
1412-
'snapshots-in-sync'
1413-
]);
1414-
done.resolve();
1415-
}
1416-
});
1417-
1418-
await setDoc(docA, { foo: 3 });
1419-
await done.promise;
1420-
});
1421-
});
1422-
14231385
it('Metadata only changes are not fired when no options provided', () => {
14241386
return withTestDoc(persistence, docRef => {
14251387
const secondUpdateFound = new Deferred();

0 commit comments

Comments
 (0)