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

Minerr test fixes #16461

Merged
merged 2 commits into from
Feb 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/error/$route/norout.ngdoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@ngdoc error
@name $route:norout
@fullName Tried updating route when with no current route
@fullName Tried updating route with no current route
@description

Occurs when an attempt is made to update the parameters on the current route when
Expand Down
2 changes: 1 addition & 1 deletion src/ngRoute/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ function $RouteProvider() {
// interpolate modifies newParams, only query params are left
$location.search(newParams);
} else {
throw $routeMinErr('norout', 'Tried updating route when with no current route');
throw $routeMinErr('norout', 'Tried updating route with no current route');
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion test/ng/compileSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>');
})
);
Expand Down
4 changes: 2 additions & 2 deletions test/ng/templateRequestSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/ngRoute/routeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down