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
If .getData can verify that the fake data has been pushed to the fake database, why does my function only return {}? Since it returns a Promise, I tried to test with async, then I get the following in the console:
The text was updated successfully, but these errors were encountered:
Hi @soumak77
I have the following function in my
source
:In my
test
, I am trying to test the scenario whensholudSort
isfalse
, and the function should return the.val()
of the database ref.my
firebase.mock.js
:my
test
file:In my console though, I get the following error:
If
.getData
can verify that the fake data has been pushed to the fake database, why does my function only return{}
? Since it returns a Promise, I tried to test withasync
, then I get the following in the console:The text was updated successfully, but these errors were encountered: