Skip to content

Commit

Permalink
change padding values to 0px in NotchedOutline test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Sasani committed Jan 13, 2022
1 parent cb8f11f commit 9a07a77
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ describe('<NotchedOutline />', () => {
paddingRight: '8px',
});
});
it('should not set padding (notch) for empty, null or undefined label props', () => {
const spanStyle = { paddingLeft: '', paddingRight: '' };
it('should not set padding (notch) for empty, null or undefined label props', function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}
const spanStyle = { paddingLeft: '0px', paddingRight: '0px' };
['', undefined, null].forEach((prop) => {
const { container: container1 } = render(<NotchedOutline {...defaultProps} label={prop} />);
expect(container1.querySelector('span')).toHaveComputedStyle(spanStyle);
Expand Down

0 comments on commit 9a07a77

Please sign in to comment.