Skip to content

test(label-list-item): Add missing tests for LabelListItem component #818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2018

Conversation

MarioArnt
Copy link
Contributor

Question Response
Version? v1.4.1
Devices tested? Emulator android
Bug fix? no
New feature? no
Includes tests? yes
All Tests pass? yes
Related ticket? #518

Description

Add unit tests for LabelListItem component

@coveralls
Copy link

coveralls commented Oct 2, 2018

Coverage Status

Coverage increased (+0.1%) to 42.483% when pulling 7c38a51 on MarioArnt:add-test-label-list-item into 027dfc5 on gitpoint:master.

@lex111 lex111 requested a review from chinesedfan October 2, 2018 23:10
describe('<LabelListItem />', () => {
it('should render component with the correct label', () => {
const wrapper = shallow(<LabelListItem {...defaultProps} />);
expect(wrapper.find(LabelButton)).toHaveLength(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarioArnt can you add a blank line before expect calls here and in other places?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Could be a good idea to use a linter for the unit tests code style.

@MarioArnt MarioArnt force-pushed the add-test-label-list-item branch from 37289ff to 7c38a51 Compare October 3, 2018 07:16
@chinesedfan chinesedfan merged commit 7e5df92 into gitpoint:master Oct 4, 2018
@andrewda andrewda mentioned this pull request Dec 1, 2018
63 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants