import React from 'react';
import {View} from 'react-native';
import {ThemeProvider} from '@dooboo-ui/theme';
import type {RenderAPI} from '@testing-library/react-native';
import {render} from '@testing-library/react-native';
import {createComponent} from '../../../../test/testUtils';
import {Typography, TypographyInverted} from '..';
let testingLib: RenderAPI;
const Component = (): JSX.Element =>
createComponent(
,
,
,
,
,
,
,
);
describe('[Typography]', () => {
it('should render without crashing', () => {
testingLib = render();
const json = testingLib.toJSON();
expect(json).toBeTruthy();
});
it('should render default theme', () => {
testingLib = render(Component());
const json = testingLib.toJSON();
expect(json).toBeTruthy();
});
it('should render [dark] mode', () => {
testingLib = render(
,
);
const json = testingLib.toJSON();
expect(json).toBeTruthy();
});
});