kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
14 wiersze
399 B
TypeScript
14 wiersze
399 B
TypeScript
import React from 'react';
|
|
|
|
import { render, screen } from '../../../../jest/test-helpers';
|
|
import OtpAuthForm from '../otp-auth-form';
|
|
|
|
describe('<OtpAuthForm />', () => {
|
|
it('renders correctly', () => {
|
|
render(<OtpAuthForm mfa_token={'12345'} />);
|
|
|
|
expect(screen.getByRole('heading')).toHaveTextContent('OTP Login');
|
|
expect(screen.getByTestId('form')).toBeInTheDocument();
|
|
});
|
|
});
|