Created
April 7, 2014 23:38
-
-
Save joshperry/10073823 to your computer and use it in GitHub Desktop.
This file contains 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
'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