How can we write unit test or e2e test for ionic2?

can you take a look into this issue I am facing while unit testing a component https://forum.ionicframework.com/t/error-no-provider-for-deeplinker/71550