Skip to content

Commit 4da1cc3

Browse files
rjametIgorMinar
authored andcommitted
refactor($templateRequest): Remove useless dependencies in tests
1 parent 6de0821 commit 4da1cc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/compileSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1296,15 +1296,15 @@ describe('$compile', function() {
12961296
));
12971297

12981298
it('should not load cross domain templates by default', inject(
1299-
function($compile, $httpBackend, $rootScope, $sce) {
1299+
function($compile, $rootScope) {
13001300
expect(function() {
13011301
$compile('<div class="crossDomainTemplate"></div>')($rootScope);
13021302
}).toThrowMinErr('$sce', 'insecurl', 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: http://example.com/should-not-load.html');
13031303
}
13041304
));
13051305

13061306
it('should trust what is already in the template cache', inject(
1307-
function($compile, $httpBackend, $rootScope, $templateCache, $sce) {
1307+
function($compile, $httpBackend, $rootScope, $templateCache) {
13081308
$httpBackend.expect('GET', 'http://example.com/should-not-load.html').respond('<span>example.com/remote-version</span>');
13091309
$templateCache.put('http://example.com/should-not-load.html', '<span>example.com/cached-version</span>');
13101310
element = $compile('<div class="crossDomainTemplate"></div>')($rootScope);

0 commit comments

Comments
 (0)