How can i run tests of an shared folder?
I have 2 projects which have other folder in common, the thing is that i have components which are shared in both projects and they need unit tests, jasmine is reading tests from both projects but not from the shared folder.
How to trigger a service call and validate output length in a test with jasmine?
Problem
(1) I am not able to find a way to trigger a service call in unit test which should be triggered when input is given.
How to test a callback of a mocked function in a service with jasmine?
A method of a service that I am using in my component has a callback as the second argument. When This callback is executed it returns a value which is assigned to a variable in the component.
How can i write jasmine unit tests for document visibility changed event
I am subscribing for the document’s visibilityChanged event.Below is the code. Document is injected using dependency injection.
Jasmine + Karma Error: Invalid configuration of route ‘…’ One of the following must be provided: component, redirectTo, children or loadChildren
I have this component defined inside its own routing-module file, like this: