Explore all newline lessons
lesson
How to Unit Test Server-Side Services in Angular KarmaThe newline Guide to Angular UniversalLast 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.
lesson
How to Unit Test Slow API Calls in AngularThe newline Guide to Angular UniversalNext step is to simulate a long-running API and verify how server-side Angular deals with it. This lesson will demonstrate you how to do that.
lesson
How to Mock PLATFORM_ID Value for Angular Unit TestingThe newline Guide to Angular UniversalHow to verify your application behavior in different environments? In this lesson you will get to know how you can stub the PLATFORM_ID injection token and HTTP request, for tests purpose.
lesson
How to Build and Run an Angular Backend to Test LocallyThe newline Guide to Angular UniversalIn this lesson you will prepare the application backend an entry gate for communicating with persistance layer and hosting Angular application bundle.