Skip to content

Commit

Permalink
test(url): remove duplicated ng1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Aug 31, 2016
1 parent 19b299f commit 8ab3dff
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/ng1/urlRouterSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,6 @@ describe("UrlRouter", function () {
expect($location.hash()).toBe('frag');
}));

it('can push location changes that include a #fragment', inject(function($urlRouter, $location) {
// html5mode disabled
$lp.html5Mode(false);
expect($lp.html5Mode()).toBe(false);
$urlRouter.push(new UrlMatcher('/hello/:name'), {name: 'world', '#': 'frag'});
expect($location.url()).toBe('/hello/world#frag');
expect($location.hash()).toBe('frag');

// html5mode enabled
$lp.html5Mode(true);
expect($lp.html5Mode()).toBe(true);
$urlRouter.push(new UrlMatcher('/hello/:name'), {name: 'world', '#': 'frag'});
expect($location.url()).toBe('/hello/world#frag');
expect($location.hash()).toBe('frag');
}));

it('can read and sync a copy of location URL', inject(function($urlRouter, $location) {
$location.url('/old');

Expand Down

0 comments on commit 8ab3dff

Please sign in to comment.