Skip to content

Commit 7bb6e19

Browse files
jmpainterjoaopapereira
authored andcommitted
standard --fix applied
1 parent e101b38 commit 7bb6e19

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/components/Footer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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>

src/tests/components/Footer.test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { shallow } from 'enzyme'
33
import { List } from 'semantic-ui-react'
4-
import { Link } from 'react-router-dom';
4+
import { Link } from 'react-router-dom'
55
import Footer, { LinksList } from '../../components/Footer'
66

77
describe('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
})

0 commit comments

Comments
 (0)