File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ export const LinksList = ({ links }) => (
3333 { link . text }
3434 </ Link >
3535 ) : (
36- < a href = { link . href } target = '_blank' rel = 'noreferrer' >
37- { link . text }
38- </ a >
39- ) }
36+ < a href = { link . href } target = '_blank' rel = 'noreferrer' >
37+ { link . text }
38+ </ a >
39+ ) }
4040 </ List . Item >
4141 ) ) }
4242 </ List >
Original file line number Diff line number Diff line change 11import React from 'react'
22import { shallow } from 'enzyme'
33import { List } from 'semantic-ui-react'
4- import { Link } from 'react-router-dom' ;
4+ import { Link } from 'react-router-dom'
55import Footer , { LinksList } from '../../components/Footer'
66
77describe ( 'Footer' , ( ) => {
@@ -50,13 +50,12 @@ describe('Footer', () => {
5050 } )
5151
5252 it ( 'renders the correct text and href for each link' , ( ) => {
53- const links = wrapper . find ( Link ) ;
53+ const links = wrapper . find ( Link )
5454
5555 for ( let i = 0 ; i < links . length ; i ++ ) {
56- expect ( links . at ( i ) . prop ( 'to' ) ) . toEqual ( props [ i ] . href ) ;
57- expect ( links . at ( i ) . contains ( props [ i ] . text ) ) . toEqual ( true ) ;
56+ expect ( links . at ( i ) . prop ( 'to' ) ) . toEqual ( props [ i ] . href )
57+ expect ( links . at ( i ) . contains ( props [ i ] . text ) ) . toEqual ( true )
5858 }
59- } ) ;
60-
59+ } )
6160 } )
6261} )
You can’t perform that action at this time.
0 commit comments