test(*): fix references to tpload minerr in tests

This commit is contained in:
Pete Bacon Darwin
2018-02-20 11:10:03 +00:00
committed by Martin Staffa
parent c617d6dcee
commit b87c6a6d4d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1917,7 +1917,7 @@ describe('$compile', function() {
expect(function() {
$httpBackend.flush();
}).toThrowMinErr('$compile', 'tpload', 'Failed to load template: hello.html');
}).toThrowMinErr('$templateRequest', 'tpload', 'Failed to load template: hello.html');
expect(sortedHtml(element)).toBe('<div><b class="hello"></b></div>');
})
);
+2 -2
View File
@@ -144,9 +144,9 @@ describe('$templateRequest', function() {
$templateRequest('tpl.html').catch(function(reason) { err = reason; });
$httpBackend.flush();
expect(err).toEqualMinErr('$compile', 'tpload',
expect(err).toEqualMinErr('$templateRequest', 'tpload',
'Failed to load template: tpl.html (HTTP status: 404 Not Found)');
expect($exceptionHandler.errors[0]).toEqualMinErr('$compile', 'tpload',
expect($exceptionHandler.errors[0]).toEqualMinErr('$templateRequest', 'tpload',
'Failed to load template: tpl.html (HTTP status: 404 Not Found)');
});
});
+1 -1
View File
@@ -892,7 +892,7 @@ describe('$route', function() {
$httpBackend.flush();
expect($exceptionHandler.errors.pop()).
toEqualMinErr('$compile', 'tpload', 'Failed to load template: r1.html');
toEqualMinErr('$templateRequest', 'tpload', 'Failed to load template: r1.html');
$httpBackend.expectGET('r2.html').respond('');
$location.path('/r2');