blob: ade96f9c82ba188df8dc8568c6924f98f8fa7283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import { UserRecoveryCodeForm } from 'src/account_recovery/forms/user_recovery_code_form';
describe('UserRecoveryCodeForm', () => {
let userRecoveryCodeForm;
beforeEach(() => {
const mockTranslations = key => key;
userRecoveryCodeForm = shallow(
<UserRecoveryCodeForm t={mockTranslations} />
);
});
it('renders title for user recovery code', () => {
expect(userRecoveryCodeForm.find('h1').text()).toEqual('account-recovery.user-form.title');
});
});
|