blob: 6a139167deac134357d4b813aa4da4f4c2c68d2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import { Page } from 'src/account_recovery/page';
describe('Page', () => {
let mockT;
let page;
beforeEach(() => {
mockT = key => key;
page = shallow(<Page t={mockT} />);
});
it('renders backup email page title', () => {
expect(page.find('h1').text()).toEqual('backup-account.title');
});
it('renders backup account email input field', () => {
expect(page.find('InputField').props().name).toEqual('email');
});
it('renders backup account submit button', () => {
expect(page.find('SubmitButton').props().buttonText).toEqual('backup-account.button');
});
});
|