supasympa
7/11/2014 - 10:35 AM

An example of hot to mock reource dependencies in tests as see in the video: AngularJS mocking resource dependencies in tests

An example of hot to mock reource dependencies in tests as see in the video:

AngularJS mocking resource dependencies in tests

  beforeEach(function () {
    mockAccessTokenResource = jasmine.stub();//stub of resource
    module(function ($provide) {
      $provide.value('AccessToken', mockAccessTokenResource);
    })
  });