1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-09 08:42:50 +03:00

Apply prettier formatting

This commit is contained in:
Michael Weimann
2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
1576 changed files with 65385 additions and 62478 deletions

View File

@@ -14,26 +14,29 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from 'react';
import { render } from '@testing-library/react';
import React from "react";
import { render } from "@testing-library/react";
import { Caption } from '../../../../src/components/views/typography/Caption';
import { Caption } from "../../../../src/components/views/typography/Caption";
describe('<Caption />', () => {
describe("<Caption />", () => {
const defaultProps = {
'children': 'test',
'data-testid': 'test test id',
"children": "test",
"data-testid": "test test id",
};
const getComponent = (props = {}) =>
(<Caption {...defaultProps} {...props} />);
const getComponent = (props = {}) => <Caption {...defaultProps} {...props} />;
it('renders plain text children', () => {
it("renders plain text children", () => {
const { container } = render(getComponent());
expect({ container }).toMatchSnapshot();
});
it('renders react children', () => {
const children = <>Test <b>test but bold</b></>;
it("renders react children", () => {
const children = (
<>
Test <b>test but bold</b>
</>
);
const { container } = render(getComponent({ children }));
expect({ container }).toMatchSnapshot();
});