Closed kevmoo closed 6 years ago
Hey @kevmoo! I'm traveling so a bit slow to respond. Will take a look when have time, most likely tomorrow.
Thanks for the PR!
@kevmoo thanks for waiting!
I've added some basic infrastructure for integration testing but I'm not sure if it's the best way to cover this kind of logic.
We probably also need to add support for the stubs provided in JS package, described here: https://firebase.google.com/docs/functions/unit-testing This would be a bigger project though, so it might be best to do in a separate PR.
I'm still struggling with JS interop and not exactly sure how to properly bind to such things like namespaced constructors, e.g. new functions.database.DeltaSnapshot(...)
. Might need to change the way how bindings are done currently.
Please let me know if you have other ideas!
Still want to pull this in?
Yes, I think it's a valuable change. There are a couple comments in regards to JSON decode/encode, when we resolve them I'll merge.
There are a couple comments in regards to JSON decode/encode, when we resolve them I'll merge.
I don't see any comments 🤷♂️
Someone needed to learn how to use Github... Should see now?
LGTM. Thanks for your contribution!
CC @pulyaevskiy – thoughts on testing?