firestore tests passing

This commit is contained in:
Jeff Huleatt
2020-05-27 18:04:06 +00:00
parent 0cd07879ff
commit ea309072be

View File

@@ -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>