Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mockfirebase ref is not a function #151

Open
RezaRahmati opened this issue Aug 7, 2019 · 0 comments
Open

mockfirebase ref is not a function #151

RezaRahmati opened this issue Aug 7, 2019 · 0 comments

Comments

@RezaRahmati
Copy link

Hi

I have below code in my test with jest

    import {MockFirebase} from 'firebase-mock';

    mockfirebase = new MockFirebase();
    mockfirebase.autoFlush();
    const ref = mockfirebase.ref('test');

but I get TypeError: mockfirebase.ref is not a function

Also when I console.log(typeof mockfirebase.ref); it will show object instead of function. What I am doing wrong?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant