Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Database reference #3

Closed
oddui opened this issue Jan 1, 2017 · 6 comments
Closed

Database reference #3

oddui opened this issue Jan 1, 2017 · 6 comments

Comments

@oddui
Copy link

oddui commented Jan 1, 2017

Hi, is there plan to support the new firebase.database().ref() interface? Thanks

@soumak77
Copy link
Owner

soumak77 commented Jan 1, 2017

Yes, in fact I implemented it in my original mockfirebase PR (katowulf/mockfirebase#112), but looks like I never transferred that code to this repo.

@oddui
Copy link
Author

oddui commented Jan 1, 2017

Thank you!

I'll try it out.

@soumak77
Copy link
Owner

soumak77 commented Jan 1, 2017

Available as part of 1.0.2

@soumak77
Copy link
Owner

soumak77 commented Jan 1, 2017

Forgot to update some changes from my PR. 1.0.2 is broken and will be fixed with 1.0.3 shortly.

@oddui
Copy link
Author

oddui commented Jan 1, 2017

Unfortunately it does not seem to work for me. This is how i use it:

import { MockFirebase } from 'firebase-mock';

let firebase;

beforeAll(() => firebase = new MockFirebase());

it('fails', () => {
  expect(firebase.database).toBeDefined();
});

@soumak77
Copy link
Owner

soumak77 commented Jan 1, 2017

You can check out angular-firebase-template which uses firebase-mock. I've updated it to use the latest version.

boyko pushed a commit to boyko/firebase-mock that referenced this issue May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants