(restaurant)
| 76 | * database. |
| 77 | */ |
| 78 | const addFakeRestaurant = async (restaurant) => { |
| 79 | const restaurantRef = await addDoc(collection(db, 'restaurants'), restaurant); |
| 80 | addMockRating(restaurantRef.id, restaurant.avgRating); |
| 81 | }; |
| 82 | |
| 83 | /** |
| 84 | * A function to generate 20 random `Restaurant` objects. The definiton |
no test coverage detected