-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -308,6 +310,26 @@ describe('<DropZone />', () => { | |||
const displayText = dropZone.find(DisplayText); | |||
expect(displayText.contains(errorOverlayText)).toBe(true); | |||
}); | |||
|
|||
it('sets type from props on context', () => { |
There was a problem hiding this comment.
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 && |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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)
There was a problem hiding this 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 ✅
WHY are these changes introduced?
Bump test coverage 🎉