Skip to content

Commit 3371089

Browse files
committed
prettier
1 parent 7038143 commit 3371089

1 file changed

Lines changed: 32 additions & 32 deletions

File tree

packages/mui-material/src/ButtonBase/ButtonBase.test.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -248,45 +248,45 @@ describe('<ButtonBase />', () => {
248248
expect(onMouseLeave.callCount).to.equal(1);
249249
});
250250

251-
it('should propagate click events when Enter is pressed on non-native button', async () => {
252-
const parentClickSpy = spy();
253-
const buttonClickSpy = spy();
251+
it('should propagate click events when Enter is pressed on non-native button', async () => {
252+
const parentClickSpy = spy();
253+
const buttonClickSpy = spy();
254254

255-
const {user} = render(
256-
<div onClick={parentClickSpy}>
257-
<ButtonBase onClick={buttonClickSpy} component="div">
258-
Hello
259-
</ButtonBase>
260-
</div>,
261-
);
255+
const { user } = render(
256+
<div onClick={parentClickSpy}>
257+
<ButtonBase onClick={buttonClickSpy} component="div">
258+
Hello
259+
</ButtonBase>
260+
</div>,
261+
);
262262

263-
// moves focus to the button
264-
await user.tab()
265-
await user.keyboard('{Enter}');
263+
// moves focus to the button
264+
await user.tab();
265+
await user.keyboard('{Enter}');
266266

267-
expect(buttonClickSpy.callCount).to.equal(1);
268-
expect(parentClickSpy.callCount).to.equal(1);
269-
});
267+
expect(buttonClickSpy.callCount).to.equal(1);
268+
expect(parentClickSpy.callCount).to.equal(1);
269+
});
270270

271-
it('should propagate click events when Space is released on non-native button', async () => {
272-
const parentClickSpy = spy();
273-
const buttonClickSpy = spy();
271+
it('should propagate click events when Space is released on non-native button', async () => {
272+
const parentClickSpy = spy();
273+
const buttonClickSpy = spy();
274274

275-
const {user} = render(
276-
<div onClick={parentClickSpy}>
277-
<ButtonBase onClick={buttonClickSpy} component="div">
278-
Hello
279-
</ButtonBase>
280-
</div>,
281-
);
275+
const { user } = render(
276+
<div onClick={parentClickSpy}>
277+
<ButtonBase onClick={buttonClickSpy} component="div">
278+
Hello
279+
</ButtonBase>
280+
</div>,
281+
);
282282

283-
// moves focus to the button
284-
await user.tab();
285-
await user.keyboard(' ');
283+
// moves focus to the button
284+
await user.tab();
285+
await user.keyboard(' ');
286286

287-
expect(buttonClickSpy.callCount).to.equal(1);
288-
expect(parentClickSpy.callCount).to.equal(1);
289-
});
287+
expect(buttonClickSpy.callCount).to.equal(1);
288+
expect(parentClickSpy.callCount).to.equal(1);
289+
});
290290
});
291291

292292
describe.skipIf(isJsdom())('ripple', () => {

0 commit comments

Comments
 (0)