Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

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

+2-2
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)