Skip to content

Commit

Permalink
prettier fixes for ModalUnstyled.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-meppem committed May 27, 2022
1 parent 6b0252c commit a28f6a7
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions packages/mui-base/src/ModalUnstyled/ModalUnstyled.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,7 @@ describe('<ModalUnstyled />', () => {
// by default, aria-hidden == (open ? null : true)
// so test that
render(
<ModalUnstyled
open
ref={elementRef}
keepMounted
data-testid="modal"
>
<ModalUnstyled open ref={elementRef} keepMounted data-testid="modal">
<div />
</ModalUnstyled>,
);
Expand All @@ -99,12 +94,7 @@ describe('<ModalUnstyled />', () => {
// by default, aria-hidden == (open ? null : true)
// so test that
render(
<ModalUnstyled
open={false}
ref={elementRef}
keepMounted
data-testid="modal"
>
<ModalUnstyled open={false} ref={elementRef} keepMounted data-testid="modal">
<div />
</ModalUnstyled>,
);
Expand All @@ -118,13 +108,7 @@ describe('<ModalUnstyled />', () => {
// by default, aria-hidden == (open ? null : true)
// so test the inverses of that
render(
<ModalUnstyled
open
aria-hidden
ref={elementRef}
keepMounted
data-testid="modal"
>
<ModalUnstyled open aria-hidden ref={elementRef} keepMounted data-testid="modal">
<div />
</ModalUnstyled>,
);
Expand Down

0 comments on commit a28f6a7

Please sign in to comment.