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

Unit testing with karma #6

Open
AlexanderBielen opened this issue Apr 12, 2017 · 0 comments
Open

Unit testing with karma #6

AlexanderBielen opened this issue Apr 12, 2017 · 0 comments

Comments

@AlexanderBielen
Copy link
Contributor

Hello,

I need some help/advice since I am stuck on a problem with unit testing my AppComponent. This is the component containing the notification-bar. I cannot seem to get my unit tests for this component working because of something that has to do with this plugin.

If I import the NotificationBarModule in my tests I get this error : Cannot read property 'unsubscribe' of undefined.

If I import only the NotificationBarComponent i get this error : No provider for NotificationBarService.
And I can't seem to provide the NotificationBarService (I tried a lot of things).

I am not sure if the problem is on my end or not, but if you have some working unit tests could you perhaps help me out? I could provide more information if you need it.

Thanks,
Alexander

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