Skip to content

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

Merged
chinesedfan merged 1 commit intogitpoint:masterfrom
MarioArnt:add-test-label-list-item
Oct 4, 2018
Merged

test(label-list-item): Add missing tests for LabelListItem component#818
chinesedfan merged 1 commit intogitpoint:masterfrom
MarioArnt:add-test-label-list-item

Conversation

@MarioArnt
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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