Skip to content

Commit 7e6155a

Browse files
rjametIgorMinar
authored andcommitted
refactor($templateRequest): Remove useless dependencies in tests
1 parent 0f03444 commit 7e6155a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/compileSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,15 +1281,15 @@ describe('$compile', function() {
12811281
));
12821282

12831283
it('should not load cross domain templates by default', inject(
1284-
function($compile, $httpBackend, $rootScope, $sce) {
1284+
function($compile, $rootScope) {
12851285
expect(function() {
12861286
$compile('<div class="crossDomainTemplate"></div>')($rootScope);
12871287
}).toThrowMinErr('$sce', 'insecurl', 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: http://example.com/should-not-load.html');
12881288
}
12891289
));
12901290

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy