You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.
It would be great to have a way to mock ionic.io angular service ($ionicAuth, $ionicUser, $ionicDeploy) like we do with $http and $httpBackend. Even simple configurable decorator would be perfect =)
On a longer shot, we may also dream of a $ionicPush mock that would use a dummy backend that can simulate sending push notification.
This won't be tackled right away, but it's good to talk about. Most of the cloud client has been switched over to use dependency injection, which makes mocking actually possible now.
Look into mocking angular 1 services with Angular 2 in mind.
Everything should now be using the client, so it may be possible to do this by simply mocking that. (but it does not use $http, because it needs to work without angular)
Plan sounds good to me =)
(still, i have trouble to understand what is about ionic-cloud compare to ionic-platform-web-client, documentation still speaks about the latest)
@astikionic-cloud is the future of the ionic-platform-web-client, but it's still in beta. There will be some breaking changes. We're launching some documentation updates soon that will hopefully clear everything up.
@astik says in https://github.com/driftyco/ionic-platform-web-client/issues/105:
This won't be tackled right away, but it's good to talk about. Most of the cloud client has been switched over to use dependency injection, which makes mocking actually possible now.
Anything else to add, @astik?
The text was updated successfully, but these errors were encountered: