kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
15 wiersze
395 B
TypeScript
15 wiersze
395 B
TypeScript
|
import React from 'react';
|
||
|
|
||
|
import { render, screen } from 'soapbox/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();
|
||
|
});
|
||
|
});
|