You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
I'm using this to mock Firebase for tests in a Ruby app. Certain tests are failing due to firebase-server returning an empty object instead of null when no data exists at a given path.
If I target a real Firebase project:
fb.get('/bogus/path')# make a RESTful GET request to a nonexistent path in Firebase#=> nil
If I target the locally running firebase-server:
fb.get('/bogus/path')# make a RESTful GET request to a nonexistent path in Firebase#=> {}
It would seem this is a result of the following line:
I'm using this to mock Firebase for tests in a Ruby app. Certain tests are failing due to firebase-server returning an empty object instead of null when no data exists at a given path.
If I target a real Firebase project:
If I target the locally running firebase-server:
It would seem this is a result of the following line:
firebase-server/lib/http-server.ts
Line 17 in 6e0ebc7
Is this deliberate? Am I missing something, or should that code be failing over to
null
instead of{}
?The text was updated successfully, but these errors were encountered: