Skip to content

Instantly share code, notes, and snippets.

@joshperry
Created April 7, 2014 23:38
Show Gist options
  • Save joshperry/10073823 to your computer and use it in GitHub Desktop.
Save joshperry/10073823 to your computer and use it in GitHub Desktop.
'use strict';
describe('Main Application Module', function() {
var httpProvider, $rootScope;
beforeEach(module('sawebApp', function($httpProvider) {
httpProvider = $httpProvider;
}));
beforeEach(inject(function(_$rootScope_) {
$rootScope = _$rootScope_;
}));
it('should register AuthHttpInterceptor', function() {
$rootScope.$digest();
expect(httpProvider.interceptors).toContain('AuthHttpInterceptor');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment