Link

Testing an Angularjs controller with a jasmine spy mocked service and http promise

Learned the hard way on how to mock a service that we also use jasmine to spy upon.  The service returns the http promise which the controller deals with by adding things on the scope.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s