Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Jun 3, 2020
1 parent 053c5d7 commit c24c1ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ describe('AndOrBadge', () => {
);

expect(wrapper.find('[data-test-subj="and-or-badge"]').at(0).text()).toEqual('AND');
expect(wrapper.find('.topAndOrBadgeAntenna[data-test-subj="and-or-badge-bar"]')).toHaveLength(
1
);
expect(
wrapper.find('.bottomAndOrBadgeAntenna[data-test-subj="and-or-badge-bar"]')
).toHaveLength(1);
expect(wrapper.find('EuiFlexItem[data-test-subj="andOrBadgeBarTop"]')).toHaveLength(1);
expect(wrapper.find('EuiFlexItem[data-test-subj="andOrBadgeBarBottom"]')).toHaveLength(1);
});

test('it renders "and" when "type" is "and"', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ export const AndOrBadge = React.memo<{ type: AndOr; includeAntennas?: boolean }>
>
<AndOrBadgeAntenna
className="topAndOrBadgeAntenna"
data-test-subj="and-or-badge-bar"
data-test-subj="andOrBadgeBarTop"
grow={1}
/>
<EuiFlexItemWrapper grow={false}>{getBadge()}</EuiFlexItemWrapper>
<AndOrBadgeAntenna
className="bottomAndOrBadgeAntenna"
data-test-subj="and-or-badge-bar"
data-test-subj="andOrBadgeBarBottom"
grow={1}
/>
</EuiFlexGroup>
Expand Down

0 comments on commit c24c1ff

Please sign in to comment.