Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5579 from jonathansampson/master
Browse files Browse the repository at this point in the history
Malforms the malformed URL
  • Loading branch information
Jonathan Sampson authored Nov 13, 2016
2 parents d4e272e + 0001381 commit e3ca1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/state/siteUtilTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,11 @@ describe('siteUtil', function () {
it('handles malformed URIs gracefully', function () {
const siteDetail = Immutable.fromJS({
tags: [siteTags.BOOKMARK],
location: 'https://www.foo.com/bar/archive/%3c',
location: 'https://www.foo.com/bar/archive/%3+c',
title: 'bookmarked site'
})
const sites = Immutable.fromJS([siteDetail])
const processedSites = siteUtil.updateSiteFavicon(sites, 'https://www.foo.com/bar/archive/%3c', 'https://www.foo.com/favicon.ico')
const processedSites = siteUtil.updateSiteFavicon(sites, 'https://www.foo.com/bar/archive/%3+c', 'https://www.foo.com/favicon.ico')
const updatedSiteDetail1 = siteDetail.set('favicon', 'https://www.foo.com/favicon.ico')
const expectedSites = Immutable.fromJS([updatedSiteDetail1])

Expand Down

0 comments on commit e3ca1d5

Please sign in to comment.