Skip to content

Instantly share code, notes, and snippets.

@lewiscowper
Created July 6, 2015 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewiscowper/8777b2bfb5bf46736830 to your computer and use it in GitHub Desktop.
Save lewiscowper/8777b2bfb5bf46736830 to your computer and use it in GitHub Desktop.
it('should call service.foo', function () {
service.foo();
expect(service.foo).toHaveBeenCalled();
service.deferredFoo.resolve();
_scope.$digest();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment