UNPKG

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

Version:

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

12 lines (11 loc) 560 B
import React from 'react'; import { cleanup, render, screen } from '@testing-library/react-native'; import { WorkflowCardInstructions } from 'src/components/WorkflowCard/WorkflowCardInstructions'; describe('WorkflowCardInstructions Test', () => { afterEach(cleanup); it('WorkflowCardInstructions renders correctly', () => { render(React.createElement(WorkflowCardInstructions, { instructions: 'Test Instructions' })).toJSON(); expect(render).toBeTruthy(); expect(screen.getByText('Test Instructions')).toBeTruthy(); }); });