Skip to content
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

[v4] Minor changes to bump test coverage slightly #1927

Merged
merged 2 commits into from
Aug 6, 2019

Conversation

AndrewMusgrave
Copy link
Member

WHY are these changes introduced?

Bump test coverage 🎉

@BPScott BPScott requested a deployment to polaris-react-pr-1927 August 6, 2019 19:29 Abandoned
@@ -308,6 +310,26 @@ describe('<DropZone />', () => {
const displayText = dropZone.find(DisplayText);
expect(displayText.contains(errorOverlayText)).toBe(true);
});

it('sets type from props on context', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Test to make sure we're setting context

return;
}
this.skipToMainContentTargetNode.current.focus();
this.skipToMainContentTargetNode.current &&
Copy link
Member Author

Choose a reason for hiding this comment

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

skipToMainContentTargetNode will never be null after mount, this is just a shortcut and will give us coverage

@@ -56,7 +56,7 @@ export default function Icon({
);
} else if (source === 'placeholder') {
contentMarkup = <div className={styles.Placeholder} />;
} else if (typeof source === 'string') {
} else {
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need an if, elif, elif since we only have 3 type options (function, 'placeholder', string)

@AndrewMusgrave AndrewMusgrave added the 🤖Skip Changelog Causes CI to ignore changelog update check. label Aug 6, 2019
@BPScott BPScott requested a deployment to polaris-react-pr-1927 August 6, 2019 19:32 Abandoned
Copy link
Member

@alex-page alex-page left a comment

Choose a reason for hiding this comment

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

Nice love more coverage ✅

@AndrewMusgrave AndrewMusgrave merged commit ee7988b into version-4.0.0 Aug 6, 2019
@AndrewMusgrave AndrewMusgrave deleted the bump-test-coverage-v4 branch August 6, 2019 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖Skip Changelog Causes CI to ignore changelog update check.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants