Skip to content

Commit

Permalink
[test] Make test consistent for browser testing
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Feb 17, 2021
1 parent 267a0c6 commit 3ac7774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -249,10 +249,10 @@ describe('url-parse', function () {

it('correctly ignores multiple slashes //', function () {
var url = '////what-is-up.com'
, parsed = parse(url);
, parsed = parse(url, parse('http://google.com'));

assume(parsed.host).equals('what-is-up.com');
assume(parsed.href).equals('//what-is-up.com/');
assume(parsed.href).equals('http://what-is-up.com/');
});

it('does not see a slash after the protocol as path', function () {
Expand Down

0 comments on commit 3ac7774

Please sign in to comment.