Skip to content

Commit

Permalink
Add test to prove domains are lowercased (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
millette authored and sindresorhus committed Sep 23, 2019
1 parent 7206849 commit 065330e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test('main', t => {
t.is(normalizeUrl('sindresorhus.com'), 'http://sindresorhus.com');
t.is(normalizeUrl('sindresorhus.com '), 'http://sindresorhus.com');
t.is(normalizeUrl('sindresorhus.com.'), 'http://sindresorhus.com');
t.is(normalizeUrl('SindreSorhus.com'), 'http://sindresorhus.com');
t.is(normalizeUrl('sindresorhus.com', {defaultProtocol: 'https:'}), 'https://sindresorhus.com');
t.is(normalizeUrl('HTTP://sindresorhus.com'), 'http://sindresorhus.com');
t.is(normalizeUrl('//sindresorhus.com'), 'http://sindresorhus.com');
Expand Down

0 comments on commit 065330e

Please sign in to comment.