Open msiebuhr opened 9 years ago
Yeah, Firebase has a ton of validation logic that we're never going to fully replicate. Not that I'm not willing to try to create parity where possible. Just that you should be doing integration tests with the real SDK as well.
The logic that handles that validate is here:
This isn't going to happen right away because I'm not willing to patch this for transactions and ignore every other write method that validates its inputs.
This will be implemented in 1.0 by running user inputs through to-firebase. If you really want this now, I'll take a PR to master that runs all write method input through to-firebase.
If setting
undefined
as a value in a transaction, Firebase will throw an error transaction failed: Data returned contains undefined in property 'data'. If the same code is run through MockFirebase, no such error is thrown.