Skip to content

Commit

Permalink
test(encode_url): punycoded IDN decoded to unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Nov 2, 2019
1 parent 3e9a4ee commit e14f8e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/encode_url.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ describe('encodeURL', () => {
encodeURL(content).should.eql('http://bár.com/baz');
});

it('idn - punycode', () => {
const content = 'http://xn--br-mia.com/baz';
encodeURL(content).should.eql('http://bár.com/baz');
});

it('path', () => {
const content = '/foo/bar/';
encodeURL(content).should.eql(content);
Expand Down

0 comments on commit e14f8e0

Please sign in to comment.