Skip to content

Commit

Permalink
Strip empty hash test
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Sep 20, 2019
1 parent 2ebe048 commit 967b8f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ test('data URL', t => {
// Lowercase the MIME type.
t.is(normalizeUrl('data:TEXT/plain,foo'), 'data:text/plain,foo');

// Strip empty hash.
t.is(normalizeUrl('data:,foo# '), 'data:,foo');

// Lowercase the charset.
t.is(normalizeUrl('data:text/plain;charset=UTF-8,foo'), 'data:text/plain;charset=utf-8,foo');

Expand Down

0 comments on commit 967b8f2

Please sign in to comment.