Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Jul 20, 2017
1 parent c85e135 commit 3b75609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/tests/Header.js
Expand Up @@ -14,7 +14,7 @@ describe('Header', () => {

it('should contain login with github link', () => {
const wrapper = mount(Header)
wrapper.find('[href="/user/login/github"]')[0].text()
wrapper.find('[href$="/user/login/github"]')[0].text()
.should.equal('Login with GitHub')
})

Expand All @@ -23,13 +23,13 @@ describe('Header', () => {
it('should contain manage sources link', () => {
const propsData = {userName: 'userName'}
const wrapper = mount(Header, {propsData})
wrapper.find('[href="/settings"]')[0].text().should.equal('Manage Sources')
wrapper.find('[href$="/settings"]')[0].text().should.equal('Manage Sources')
})

it('should contain logout link', () => {
const propsData = {userName: 'userName'}
const wrapper = mount(Header, {propsData})
wrapper.find('[href="/user/logout"]')[0].text().should.equal('Logout')
wrapper.find('[href$="/user/logout"]')[0].text().should.equal('Logout')
})

})
Expand Down

0 comments on commit 3b75609

Please sign in to comment.