Skip to content

Angular Testing Mocking AngularFireStorage and -StorageReference #1550

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

Closed
MarcoLeko opened this issue Apr 8, 2018 · 3 comments
Closed

Angular Testing Mocking AngularFireStorage and -StorageReference #1550

MarcoLeko opened this issue Apr 8, 2018 · 3 comments

Comments

@MarcoLeko
Copy link

MarcoLeko commented Apr 8, 2018

Since no one is able to answer the question on stackoverflow and there is no proper doc on this topic. It would be nice to see as a feature request an extension in the angularfire 2 documentation how to properly mock the ref method with getDownloadURL from AngularFireStorageReference.

Link to the stackoverflow question is: here

Version info

Angular: 5.2.4

Firebase: ^4.12.1

AngularFire: ^5.0.0-rc.6

@soumak77
Copy link

@MarcoLeko you could use this library for mocking firebase: https://github.com/soumak77/firebase-mock

I'm not exactly sure how to inject this mock into angularfire though, see #1557

@MarcoLeko
Copy link
Author

@soumak77 i have already the solution for my issue posted in stackoverflow.
I appriciate ur Help though🤙

@chamanklalwani
Copy link

@MarcoLeko can you please provide detailed sample code of mocking AngularFirebaseStorage and AngularFirestore

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

3 participants