Category: Testing
Running Angular unit tests in headless Chrome
Setting up Karma to run unit tests in headless chrome… read more
Testing a failed api response when unit testing Angular/Ionic apps
Two methods for unit testing failed api responses in Angular applications… read more
Disabling Sentry/Raven for localhost in Angular
Preventing Sentry making requests on localhost… read more
Mocking Ionic Platform for Ionic 2 Unit Tests
How to mock 'ionic-angular' Platform… read more
SpyOn NavController.setRoot() in Ionic 2
Mock out and spyOn NavController.setRoot() in Ionic 2… read more
Mocking out NavParams in Ionic 2 unit tests
Solving the "Failed: Can't resolve all parameters for NavParams: (?)" error… read more
Angular 2 Unit Testing Errors & Solutions
Solutions to some common Angular 2 unit test errors… read more
Solving the Ionic 2 Unit Testing error “TypeError: null is not an object (evaluating ‘this._scroll.ev’)”
Ionic 2 Unit Testing… read more
spying on Localstorage in Angular 2 Unit Tests
A quick way to mock localstorage in unit tests… read more
Spying on Router.navigate() in Angular 2 Unit Tests
Mocking Router in Angular2… read more
Mocking Angular 2 service calls with Observables in component unit tests
Unit Testing Angular 2 Component service calls… read more