ionic-team / legacy-ionic-cloud

JavaScript Client for legacy Ionic Cloud services. See Ionic Pro for our new take on the ionic development lifecycle
Apache License 2.0
65 stars 26 forks source link

Mock Cloud Services #7

Open imhoffd opened 8 years ago

imhoffd commented 8 years ago

@astik says in https://github.com/driftyco/ionic-platform-web-client/issues/105:

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.

Anything else to add, @astik?

astik commented 8 years ago

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)

imhoffd commented 8 years ago

@astik ionic-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.