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

Commit

Permalink
test(location): should not rewrite Html5 deep urls
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Apr 25, 2013
1 parent 5a8ae94 commit 0fbf584
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/ng/locationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ describe('$location', function() {
expect(url.absUrl()).toBe('http://www.domain.com:9877/a');
});

it('should not rewrite when hashbang url is not given', function() {
initService(true, '!', true);
inject(
initBrowser('http://domain.com/base/a/b', '/base'),
function($rootScope, $location, $browser) {
expect($browser.url()).toBe('http://domain.com/base/a/b');
}
);
});

it('should prepend path with basePath', function() {
url = new LocationHtml5Url('http://server/base/');
Expand Down

0 comments on commit 0fbf584

Please sign in to comment.