@brightlayer-ui/react-native-auth-workflow
Version:
Re-usable workflow components for Authentication and Registration within Eaton applications.
11 lines (10 loc) • 366 B
JavaScript
import React from 'react';
import { cleanup, render } from '@testing-library/react-native';
import { Spinner } from 'src/components/Spinner';
describe('Spinner Test', () => {
afterEach(cleanup);
it('Spinner renders correctly', () => {
render(React.createElement(Spinner, { visible: true })).toJSON();
expect(render).toBeTruthy();
});
});