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

Commit

Permalink
Added test for shouldShowPublisherButton for PR #14028
Browse files Browse the repository at this point in the history
updated package-lock for npm 6. Updated bat-client for 2.2.8

Auditors:

Test Plan:

Auditors:

Test Plan:
  • Loading branch information
Jason Sadler committed May 5, 2018
1 parent bca6936 commit c1560d1
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 c1560d1

Please sign in to comment.