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 #14034 from jasonrsadler/test/#14028-pdf-url
Browse files Browse the repository at this point in the history
Added test for shouldShowPublisherButton for PR #14028
  • Loading branch information
NejcZdovc authored May 7, 2018
2 parents bca6936 + c1560d1 commit 30cc25b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/app/common/lib/publisherUtilTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,10 @@ describe('publisherUtil test', function () {
const result = publisherUtil.shouldShowAddPublisherButton(state, 'https://brave.com', 'brave.com')
assert.equal(result, true)
})

it('location is pdf', function () {
const result = publisherUtil.shouldShowAddPublisherButton(state, 'chrome-extension://jdbefljfgobbmcidnmpjamcbhnbphjnb/http://orimi.com/pdf-test.pdf', 'orimi.com')
assert.equal(result, true)
})
})
})

0 comments on commit 30cc25b

Please sign in to comment.