aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngRoute/routeSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngRoute/routeSpec.js')
-rw-r--r--test/ngRoute/routeSpec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ngRoute/routeSpec.js b/test/ngRoute/routeSpec.js
index 0064c26c..ae9883a2 100644
--- a/test/ngRoute/routeSpec.js
+++ b/test/ngRoute/routeSpec.js
@@ -545,7 +545,8 @@ describe('$route', function() {
$location.path('/foo');
expect(function() {
$rootScope.$digest();
- }).toThrow('[$sce:insecurl] Blocked loading resource from url not allowed by $sceDelegate policy. URL: http://example.com/foo.html');
+ }).toThrowMinErr('$sce', 'insecurl', 'Blocked loading resource from url not allowed by ' +
+ '$sceDelegate policy. URL: http://example.com/foo.html');
});
});