Created
July 11, 2014 10:35
-
-
Save supasympa/a1ae796b0b5960bde8f9 to your computer and use it in GitHub Desktop.
An example of hot to mock reource dependencies in tests as see in the video: AngularJS mocking resource dependencies in tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| beforeEach(function () { | |
| mockAccessTokenResource = jasmine.stub();//stub of resource | |
| module(function ($provide) { | |
| $provide.value('AccessToken', mockAccessTokenResource); | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment