Skip to content

Commit 59f1947

Browse files
committed
format
1 parent d72a04b commit 59f1947

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

packages/react-native/Libraries/Components/View/__tests__/View-itest.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,9 @@ describe('<View>', () => {
651651
root.render(<View role="button" />);
652652
});
653653

654-
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
655-
<rn-view accessible="true" />,
656-
);
654+
expect(
655+
root.getRenderedOutput({props: ['accessible']}).toJSX(),
656+
).toEqual(<rn-view accessible="true" />);
657657
});
658658

659659
it('does not make the view accessible for the "none" role', () => {
@@ -663,9 +663,9 @@ describe('<View>', () => {
663663
root.render(<View role="none" collapsable={false} />);
664664
});
665665

666-
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
667-
<rn-view />,
668-
);
666+
expect(
667+
root.getRenderedOutput({props: ['accessible']}).toJSX(),
668+
).toEqual(<rn-view />);
669669
});
670670

671671
it('does not make the view accessible for the "presentation" role', () => {
@@ -675,9 +675,9 @@ describe('<View>', () => {
675675
root.render(<View role="presentation" collapsable={false} />);
676676
});
677677

678-
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
679-
<rn-view />,
680-
);
678+
expect(
679+
root.getRenderedOutput({props: ['accessible']}).toJSX(),
680+
).toEqual(<rn-view />);
681681
});
682682

683683
it('does not override an explicit "accessible" prop', () => {
@@ -691,9 +691,9 @@ describe('<View>', () => {
691691

692692
// `accessible={false}` is not propagated to the mounting layer (it is
693693
// the default), so the implicit `role` behavior must not force it on.
694-
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
695-
<rn-view />,
696-
);
694+
expect(
695+
root.getRenderedOutput({props: ['accessible']}).toJSX(),
696+
).toEqual(<rn-view />);
697697
});
698698
});
699699
describe('aria-label', () => {

packages/react-native/Libraries/Image/__tests__/Image-itest.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -654,29 +654,29 @@ describe('<Image>', () => {
654654
Fantom.runTask(() => {
655655
root.render(<Image role="button" source={LOGO_SOURCE} />);
656656
});
657-
expect(
658-
root.getRenderedOutput({props: ['accessible']}).toJSX(),
659-
).toEqual(<rn-image accessible="true" />);
657+
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
658+
<rn-image accessible="true" />,
659+
);
660660
});
661661

662662
it('does not mark the image accessible for the "none" role', () => {
663663
const root = Fantom.createRoot();
664664
Fantom.runTask(() => {
665665
root.render(<Image role="none" source={LOGO_SOURCE} />);
666666
});
667-
expect(
668-
root.getRenderedOutput({props: ['accessible']}).toJSX(),
669-
).toEqual(<rn-image />);
667+
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
668+
<rn-image />,
669+
);
670670
});
671671

672672
it('does not mark the image accessible for the "presentation" role', () => {
673673
const root = Fantom.createRoot();
674674
Fantom.runTask(() => {
675675
root.render(<Image role="presentation" source={LOGO_SOURCE} />);
676676
});
677-
expect(
678-
root.getRenderedOutput({props: ['accessible']}).toJSX(),
679-
).toEqual(<rn-image />);
677+
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
678+
<rn-image />,
679+
);
680680
});
681681

682682
it('does not override an explicit "accessible" prop', () => {
@@ -688,9 +688,9 @@ describe('<Image>', () => {
688688
});
689689
// `accessible={false}` is not propagated to the mounting layer (it is
690690
// the default), so the implicit `role` behavior must not force it on.
691-
expect(
692-
root.getRenderedOutput({props: ['accessible']}).toJSX(),
693-
).toEqual(<rn-image />);
691+
expect(root.getRenderedOutput({props: ['accessible']}).toJSX()).toEqual(
692+
<rn-image />,
693+
);
694694
});
695695
});
696696

0 commit comments

Comments
 (0)