Lines Matching refs:parsed
19 let parsed; variable
23 parsed = url.parse(url.resolve(test.base, test.input));
33 assert.strictEqual(test.href, parsed.href);
34 assert.strictEqual(test.protocol, parsed.protocol);
35 username = parsed.auth ? parsed.auth.split(':', 2)[0] : '';
36 password = parsed.auth ? parsed.auth.split(':', 2)[1] : '';
39 assert.strictEqual(test.host, parsed.host);
40 assert.strictEqual(test.hostname, parsed.hostname);
41 assert.strictEqual(+test.port, +parsed.port);
42 assert.strictEqual(test.pathname, parsed.pathname || '/');
43 assert.strictEqual(test.search, parsed.search || '');
44 assert.strictEqual(test.hash, parsed.hash || '');