From 0d7657df28d51b5192884f4181f79fc043cd3011 Mon Sep 17 00:00:00 2001 From: Jakub Pogorzelski <jakub.pogorzelski@cronn.de> Date: Fri, 11 Sep 2020 09:17:21 +0200 Subject: [PATCH] Update link to the tutorial for configuration of existing application --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7d4006..a2732f2 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Special thanks to all of the contributors. With the exception of the Ionic team' ## How to Configure Your Ionic Application for Testing -Read [this tutorial](https://leifwells.github.io/2017/08/27/testing-in-ionic-configure-existing-projects-for-testing/) for instructions on how to apply the testing configuration in this project to your own project. +Read [this tutorial](https://leifwells.github.io/blog/2017-08-27-adding-testing-to-ionic-app/) for instructions on how to apply the testing configuration in this project to your own project. ## Mocking Classes for Ionic When a developer unit tests a component, the objective is to isolate that component as much as possible. In the case of an Ionic page, you may have Ionic components like `NavController`, `LoadingContoller`, or `Platform`. Adding these components means adding pieces of the Ionic framework to your test, thus not isolating the component. As part of this example, the file `test-config/mocks-ionic.ts` is provided for creating simple mocks for many of the classes in Ionic that you may need. You may use the classes from this file in test files inside the `TestBed.configureComponent()` method argument's `provider` array as seen in our [example unit test file](https://github.com/ionic-team/ionic-unit-testing-example/blob/master/src/app/app.component.spec.ts).