Skip to content

Commit a682252

Browse files
committed
prettier.
1 parent 5492aae commit a682252

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

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

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,11 @@ apiDescribe('Database', persistence => {
780780

781781
return withTestCollection(persistence, docs, async randomCol => {
782782
const orderedQuery = query(randomCol, orderBy('embedding'));
783-
await checkOnlineAndOfflineResultsMatch(randomCol, orderedQuery, ...documentIds);
783+
await checkOnlineAndOfflineResultsMatch(
784+
randomCol,
785+
orderedQuery,
786+
...documentIds
787+
);
784788

785789
const orderedQueryLessThan = query(
786790
randomCol,
@@ -2419,7 +2423,7 @@ apiDescribe('Database', persistence => {
24192423
'Aa'
24202424
];
24212425
await checkOnlineAndOfflineResultsMatch(
2422-
collectionRef,
2426+
collectionRef,
24232427
filteredQuery,
24242428
...expectedDocs
24252429
);
@@ -2471,7 +2475,11 @@ apiDescribe('Database', persistence => {
24712475

24722476
unsubscribe();
24732477

2474-
await checkOnlineAndOfflineResultsMatch(collectionRef, orderedQuery, ...expectedDocs);
2478+
await checkOnlineAndOfflineResultsMatch(
2479+
collectionRef,
2480+
orderedQuery,
2481+
...expectedDocs
2482+
);
24752483
});
24762484
});
24772485

@@ -2503,7 +2511,11 @@ apiDescribe('Database', persistence => {
25032511

25042512
unsubscribe();
25052513

2506-
await checkOnlineAndOfflineResultsMatch(collectionRef, orderedQuery, ...expectedDocs);
2514+
await checkOnlineAndOfflineResultsMatch(
2515+
collectionRef,
2516+
orderedQuery,
2517+
...expectedDocs
2518+
);
25072519
});
25082520
});
25092521

@@ -2535,7 +2547,11 @@ apiDescribe('Database', persistence => {
25352547

25362548
unsubscribe();
25372549

2538-
await checkOnlineAndOfflineResultsMatch(collectionRef, orderedQuery, ...expectedDocs);
2550+
await checkOnlineAndOfflineResultsMatch(
2551+
collectionRef,
2552+
orderedQuery,
2553+
...expectedDocs
2554+
);
25392555
});
25402556
});
25412557

@@ -2567,7 +2583,11 @@ apiDescribe('Database', persistence => {
25672583

25682584
unsubscribe();
25692585

2570-
await checkOnlineAndOfflineResultsMatch(collectionRef, orderedQuery, ...expectedDocs);
2586+
await checkOnlineAndOfflineResultsMatch(
2587+
collectionRef,
2588+
orderedQuery,
2589+
...expectedDocs
2590+
);
25712591
});
25722592
});
25732593

@@ -2612,7 +2632,11 @@ apiDescribe('Database', persistence => {
26122632

26132633
unsubscribe();
26142634

2615-
await checkOnlineAndOfflineResultsMatch(collectionRef, orderedQuery, ...expectedDocs);
2635+
await checkOnlineAndOfflineResultsMatch(
2636+
collectionRef,
2637+
orderedQuery,
2638+
...expectedDocs
2639+
);
26162640
});
26172641
});
26182642

packages/firestore/test/integration/util/helpers.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,13 @@ export async function checkOnlineAndOfflineResultsMatch(
570570
// 4- This performs the query against the cache using remote keys.
571571
const docsFromCacheUsingRemoteKeys = await getDocsFromCache(query);
572572

573-
expect(toIds(docsFromServer)).to.deep.equal(toIds(docsFromCacheFullCollectionScan));
574-
expect(toIds(docsFromServer)).to.deep.equal(toIds(docsFromCacheUsingRemoteKeys));
573+
expect(toIds(docsFromServer)).to.deep.equal(
574+
toIds(docsFromCacheFullCollectionScan)
575+
);
576+
expect(toIds(docsFromServer)).to.deep.equal(
577+
toIds(docsFromCacheUsingRemoteKeys)
578+
);
575579
if (expectedDocs.length !== 0) {
576580
expect(expectedDocs).to.deep.equal(toIds(docsFromServer));
577581
}
578-
579582
}

0 commit comments

Comments
 (0)