mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-05-13 18:21:06 +08:00
firestore tests passing
This commit is contained in:
@@ -251,11 +251,11 @@ describe('Firestore', () => {
|
||||
await act(() => ref.add(mockData2));
|
||||
|
||||
const ReadFirestoreCollection = () => {
|
||||
const collection = useFirestoreCollection(ref) as any;
|
||||
const { data: collection } = useFirestoreCollection(ref);
|
||||
|
||||
return (
|
||||
<ul data-testid="readSuccess">
|
||||
{(collection as firestore.QuerySnapshot).docs.map(doc => (
|
||||
{(collection as unknown as firestore.QuerySnapshot).docs.map(doc => (
|
||||
<li key={doc.id} data-testid="listItem">
|
||||
doc.data().a
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user