lesson
How to Unit Test Server-Side Services in Angular Karma
The newline Guide to Angular Universal
Last but not least of your unit tests, should be to verify the server-specific services. In this lesson you will learn how to enforce Karma to run tests against code that includes server-specific objects and libraries.