Skip to content

Commit

Permalink
Add explore all section to the Performances page
Browse files Browse the repository at this point in the history
  • Loading branch information
dhemmingson committed Jul 28, 2019
1 parent 9b77ac4 commit 3d1b382
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React, { Component } from 'react'
import Paginate from '../../../components/Paginate/Paginate'

class ExplorePerformances extends Component {
render() {
return (
<React.Fragment>
<h1 className="explore-performances-title" >Explore Performances</h1>
<Paginate />
</React.Fragment>
)
}
}

export default ExplorePerformances
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react'
import { shallow } from 'enzyme'
import ExplorePerformances from './ExplorePerformances'
import Paginate from '../../../components/Paginate/Paginate'

describe('<ExplorePerformances />', () => {
let explorePerformancesWrapper
beforeEach(() => {
explorePerformancesWrapper = shallow(<ExplorePerformances />)
})
it("has 'Explore Performances' title", () => {
expect(explorePerformancesWrapper.find('h1').text()).toEqual('Explore Performances')
})
it('has a Paginate component', () => {
expect(explorePerformancesWrapper.find(Paginate).length).toEqual(1)
})
})
2 changes: 2 additions & 0 deletions src/containers/Performances/Performances.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React, { Component } from 'react'
import ExplorePerformances from './ExplorePerformances/ExplorePerformances'
import Banner from '../../components/Shared/Banner/Banner'

class Performances extends Component {
render() {
return (
<React.Fragment>
<ExplorePerformances />
<Banner
headline="You can make a difference today"
buttonLabel="Sign up now"
Expand Down
3 changes: 3 additions & 0 deletions src/containers/Performances/Performances.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ describe('<Performances />', () => {
beforeEach(() => {
performancesWrapper = shallow(<Performances />)
})
it('contains an ExploreArtists section', () => {
expect(performancesWrapper.find('ExplorePerformances').length).toEqual(1)
})
it('contains a sign up banner at the bottom', () => {
expect(performancesWrapper.find('Banner').length).toEqual(1)
})
Expand Down

0 comments on commit 3d1b382

Please sign in to comment.