Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Mock Cloud Services #7

Open
imhoffd opened this issue Jun 23, 2016 · 2 comments
Open

Mock Cloud Services #7

imhoffd opened this issue Jun 23, 2016 · 2 comments

Comments

@imhoffd
Copy link
Contributor

imhoffd commented Jun 23, 2016

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

  • 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)

Anything else to add, @astik?

@astik
Copy link

astik commented Jun 24, 2016

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
Copy link
Contributor Author

imhoffd commented Jun 24, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants