UNPKG

@brightlayer-ui/react-native-auth-workflow

Version:

Re-usable workflow components for Authentication and Registration within Eaton applications.

17 lines (16 loc) 651 B
/** * @format */ import React from 'react'; import { cleanup, render, screen } from '@testing-library/react-native'; import { WorkflowCardBody } from 'src/components/WorkflowCard/WorkflowCardBody'; import { Text } from 'react-native-paper'; describe('WorkflowCardBody Test', () => { afterEach(cleanup); it('WorkflowCardBody renders correctly', () => { render(React.createElement(WorkflowCardBody, null, React.createElement(Text, null, "This is workflow card body content."))).toJSON(); expect(render).toBeTruthy(); expect(screen.getByText('This is workflow card body content.')).toBeTruthy(); }); });