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

Commit 0fbf584

Browse files
test(location): should not rewrite Html5 deep urls
1 parent 5a8ae94 commit 0fbf584

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/ng/locationSpec.js

+9
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,15 @@ describe('$location', function() {
177177
expect(url.absUrl()).toBe('http://www.domain.com:9877/a');
178178
});
179179

180+
it('should not rewrite when hashbang url is not given', function() {
181+
initService(true, '!', true);
182+
inject(
183+
initBrowser('http://domain.com/base/a/b', '/base'),
184+
function($rootScope, $location, $browser) {
185+
expect($browser.url()).toBe('http://domain.com/base/a/b');
186+
}
187+
);
188+
});
180189

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

0 commit comments

Comments
 (0)