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

Commit b87c6a6

Browse files
petebacondarwinNarretz
authored andcommitted
test(*): fix references to tpload minerr in tests
1 parent c617d6d commit b87c6a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/ng/compileSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ describe('$compile', function() {
19171917

19181918
expect(function() {
19191919
$httpBackend.flush();
1920-
}).toThrowMinErr('$compile', 'tpload', 'Failed to load template: hello.html');
1920+
}).toThrowMinErr('$templateRequest', 'tpload', 'Failed to load template: hello.html');
19211921
expect(sortedHtml(element)).toBe('<div><b class="hello"></b></div>');
19221922
})
19231923
);

test/ng/templateRequestSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ describe('$templateRequest', function() {
144144
$templateRequest('tpl.html').catch(function(reason) { err = reason; });
145145
$httpBackend.flush();
146146

147-
expect(err).toEqualMinErr('$compile', 'tpload',
147+
expect(err).toEqualMinErr('$templateRequest', 'tpload',
148148
'Failed to load template: tpl.html (HTTP status: 404 Not Found)');
149-
expect($exceptionHandler.errors[0]).toEqualMinErr('$compile', 'tpload',
149+
expect($exceptionHandler.errors[0]).toEqualMinErr('$templateRequest', 'tpload',
150150
'Failed to load template: tpl.html (HTTP status: 404 Not Found)');
151151
});
152152
});

test/ngRoute/routeSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ describe('$route', function() {
892892

893893
$httpBackend.flush();
894894
expect($exceptionHandler.errors.pop()).
895-
toEqualMinErr('$compile', 'tpload', 'Failed to load template: r1.html');
895+
toEqualMinErr('$templateRequest', 'tpload', 'Failed to load template: r1.html');
896896

897897
$httpBackend.expectGET('r2.html').respond('');
898898
$location.path('/r2');

0 commit comments

Comments
 (0)