Skip to content

Commit

Permalink
Hardened ExternalLinks.test.js
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <[email protected]>
  • Loading branch information
rubenvp8510 committed Dec 6, 2019
1 parent a7703f9 commit fc8dbb9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ describe('<ExternalLinks>', () => {
const wrapper = shallow(<ExternalLinks links={links} />);
const dropdown = wrapper.find('Dropdown');
expect(dropdown.length).toBe(1);
const linkValues = shallow(dropdown.props().overlay);
expect(linkValues.length).toBe(links.length);
linkValues.forEach((linkValue, i) => {
expect(linkValue.prop('href')).toBe(links[i].url);
expect(linkValue.prop('title')).toBe(links[i].text);
});
});

it('renders one link', () => {
Expand Down

0 comments on commit fc8dbb9

Please sign in to comment.