From f9156de6bfd13847cbb45725bfce5c4b324a3216 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Mon, 3 Dec 2018 04:30:11 +0000 Subject: [PATCH] Add support for username in URL (#22) --- test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test.js b/test.js index e36f719..9fc2d97 100644 --- a/test.js +++ b/test.js @@ -124,10 +124,14 @@ test('skips URLs preceded by a `+` sign', t => { t.is(m(fixture), fixture); }); -test.failing('supports username in url', t => { +test('supports username in url', t => { t.is(m('https://user@sindresorhus.com/@foo'), 'https://user@sindresorhus.com/@foo'); }); +test('supports a URL with a subdomain', t => { + t.is(m('http://docs.google.com'), 'http://docs.google.com'); +}); + test('skips email addresses', t => { t.is(m('sindre@example.com'), 'sindre@example.com'); t.is(m('www.sindre@example.com'), 'www.sindre@example.com');