Skip to content

Commit

Permalink
added test for leading //
Browse files Browse the repository at this point in the history
  • Loading branch information
rauberdaniel committed Mar 17, 2016
1 parent 3f72b6e commit baac627
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/tests.js
Expand Up @@ -20,4 +20,9 @@ describe('url join', function () {
urljoin('http:', 'www.google.com///', 'foo/bar', '?test=123', '#faaaaa')
.should.eql('http://www.google.com/foo/bar?test=123#faaaaa');
});
});

it('should keep leading //', function () {
urljoin('//www.google.com', 'foo/bar', '?test=123')
.should.eql('//www.google.com/foo/bar?test=123')
})
});

0 comments on commit baac627

Please sign in to comment.