Closed kenchambers closed 2 years ago
Unfortunately, that is not currently possible. But it should be! The docs returned by the snapshots right now are just basic objects and not mocks, but I definitely see the value in this
@sbatson5 I actually was able to get this to work. It also correctly reads the parameters passed into doc.update
thank you for your help
Summary
Is it possible to check if
mockUpdate
was called on a document that is inside of adataSnapshot.forEach
?But when i test using:
mockCollection
is passing, butmockUpdate
is not