Skip to content

Commit 8ab3dff

Browse files
test(url): remove duplicated ng1 test
1 parent 19b299f commit 8ab3dff

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/ng1/urlRouterSpec.js

-16
Original file line numberDiff line numberDiff line change
@@ -198,22 +198,6 @@ describe("UrlRouter", function () {
198198
expect($location.hash()).toBe('frag');
199199
}));
200200

201-
it('can push location changes that include a #fragment', inject(function($urlRouter, $location) {
202-
// html5mode disabled
203-
$lp.html5Mode(false);
204-
expect($lp.html5Mode()).toBe(false);
205-
$urlRouter.push(new UrlMatcher('/hello/:name'), {name: 'world', '#': 'frag'});
206-
expect($location.url()).toBe('/hello/world#frag');
207-
expect($location.hash()).toBe('frag');
208-
209-
// html5mode enabled
210-
$lp.html5Mode(true);
211-
expect($lp.html5Mode()).toBe(true);
212-
$urlRouter.push(new UrlMatcher('/hello/:name'), {name: 'world', '#': 'frag'});
213-
expect($location.url()).toBe('/hello/world#frag');
214-
expect($location.hash()).toBe('frag');
215-
}));
216-
217201
it('can read and sync a copy of location URL', inject(function($urlRouter, $location) {
218202
$location.url('/old');
219203

0 commit comments

Comments
 (0)