test(*): fix references to tpload minerr in tests
This commit is contained in:
committed by
Martin Staffa
parent
c617d6dcee
commit
b87c6a6d4d
@@ -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>');
|
||||
})
|
||||
);
|
||||
|
||||
@@ -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)');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user