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

How to call MockFirebase.override() #114

Open
Dashing-Daniel-Li opened this issue Jan 17, 2018 · 1 comment
Open

How to call MockFirebase.override() #114

Dashing-Daniel-Li opened this issue Jan 17, 2018 · 1 comment

Comments

@Dashing-Daniel-Li
Copy link

I keep getting this error:
TypeError: __WEBPACK_IMPORTED_MODULE_1_mockfirebase___default.a.override is not a function

In my spec.ts I imported it at the top

import MockFirebase from'mockfirebase';

then in my before each i called:
MockFirebase.override();

Does it need to be in the karma config and where ??
I am making an ionic app using ionic example testing git repo.

@Dashing-Daniel-Li
Copy link
Author

var MockFirebase = require('mockfirebase').MockFirebase;

in the setup instructions where do i put this?

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

1 participant