Skip to content

Commit 3ac7774

Browse files
committed
[test] Make test consistent for browser testing
1 parent 267a0c6 commit 3ac7774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ describe('url-parse', function () {
249249

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

254254
assume(parsed.host).equals('what-is-up.com');
255-
assume(parsed.href).equals('//what-is-up.com/');
255+
assume(parsed.href).equals('http://what-is-up.com/');
256256
});
257257

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

0 commit comments

Comments
 (0)