Skip to content

Commit

Permalink
types don't rule it all
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 13, 2020
1 parent 7481f1d commit 45a8c3e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/material-ui/src/ButtonBase/ButtonBase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,10 @@ describe('<ButtonBase />', () => {
fireEvent.mouseDown(getByRole('button'), { clientX: 10, clientY: 10 });
const rippleRipple = container.querySelector('.touch-ripple-ripple');
expect(rippleRipple).to.not.equal(null);
if (rippleRipple !== null) {
const rippleSyle = window.getComputedStyle(rippleRipple);
expect(rippleSyle).to.have.property('height', '101px');
expect(rippleSyle).to.have.property('width', '101px');
}
// @ts-ignore
const rippleSyle = window.getComputedStyle(rippleRipple);
expect(rippleSyle).to.have.property('height', '101px');
expect(rippleSyle).to.have.property('width', '101px');
});

it('is disabled by default', () => {
Expand All @@ -472,11 +471,10 @@ describe('<ButtonBase />', () => {
fireEvent.mouseDown(getByRole('button'), { clientX: 10, clientY: 10 });
const rippleRipple = container.querySelector('.touch-ripple-ripple');
expect(rippleRipple).to.not.equal(null);
if (rippleRipple !== null) {
const rippleSyle = window.getComputedStyle(rippleRipple);
expect(rippleSyle).to.not.have.property('height', '101px');
expect(rippleSyle).to.not.have.property('width', '101px');
}
// @ts-ignore
const rippleSyle = window.getComputedStyle(rippleRipple);
expect(rippleSyle).to.not.have.property('height', '101px');
expect(rippleSyle).to.not.have.property('width', '101px');
});
});

Expand Down

0 comments on commit 45a8c3e

Please sign in to comment.