diff options
Diffstat (limited to 'web-ui/test/unit/account_recovery')
-rw-r--r-- | web-ui/test/unit/account_recovery/page.spec.js | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/web-ui/test/unit/account_recovery/page.spec.js b/web-ui/test/unit/account_recovery/page.spec.js index 590d1de8..6a139167 100644 --- a/web-ui/test/unit/account_recovery/page.spec.js +++ b/web-ui/test/unit/account_recovery/page.spec.js @@ -1,25 +1,26 @@ -import { shallow } from 'enzyme' -import expect from 'expect' -import React from 'react' -import { Page } from 'src/account_recovery/page' +import { shallow } from 'enzyme'; +import expect from 'expect'; +import React from 'react'; +import { Page } from 'src/account_recovery/page'; describe('Page', () => { - let mockT, page + let mockT; + let page; beforeEach(() => { - mockT = (key) => (key) - page = shallow(<Page t={mockT}/>) - }) + mockT = key => key; + page = shallow(<Page t={mockT} />); + }); it('renders backup email page title', () => { - expect(page.find('h1').text()).toEqual('backup-account.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') - }) + expect(page.find('InputField').props().name).toEqual('email'); + }); it('renders backup account submit button', () => { - expect(page.find('SubmitButton').props().buttonText).toEqual('backup-account.button') - }) -}) + expect(page.find('SubmitButton').props().buttonText).toEqual('backup-account.button'); + }); +}); |