mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
test($location): fix test of {rewriteLinks:false}
The test for not rewriting links was invalid and just happened to be passing by chance (false-positive).
This commit is contained in:
@@ -1298,7 +1298,7 @@ describe('$location', function() {
|
||||
|
||||
|
||||
it ('should not rewrite links when rewriting links is disabled', function() {
|
||||
configureService('/a?b=c', true, true, '', 'some content', false);
|
||||
configureService({linkHref: 'link?a#b', html5Mode: {enabled: true, rewriteLinks:false}, supportHist: true});
|
||||
inject(
|
||||
initBrowser(),
|
||||
initLocation(),
|
||||
|
||||
Reference in New Issue
Block a user