diff options
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/spec/account_recovery/account_recovery.spec.js | 12 | ||||
-rw-r--r-- | web-ui/test/spec/account_recovery/page.spec.js | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/web-ui/test/spec/account_recovery/account_recovery.spec.js b/web-ui/test/spec/account_recovery/account_recovery.spec.js deleted file mode 100644 index eaff257b..00000000 --- a/web-ui/test/spec/account_recovery/account_recovery.spec.js +++ /dev/null @@ -1,12 +0,0 @@ -import {shallow} from 'enzyme' -import expect from 'expect' -import React from 'react' -import Page from '../../../app/js/account_recovery/page' - -describe('test', () => { - 'use strict'; - it('react', () => { - const page = shallow(<Page />); - expect(page.find('h1').text()).toEqual('E se vocĂȘ esquecer sua senha?'); - }); -}); diff --git a/web-ui/test/spec/account_recovery/page.spec.js b/web-ui/test/spec/account_recovery/page.spec.js new file mode 100644 index 00000000..3e19f244 --- /dev/null +++ b/web-ui/test/spec/account_recovery/page.spec.js @@ -0,0 +1,12 @@ +import {shallow} from 'enzyme' +import expect from 'expect' +import React from 'react' +import { Page } from '../../../app/js/account_recovery/page' + +describe('Page', () => { + it('renders backup email page title', () => { + const mockT = key => key; + const page = shallow(<Page t={mockT}/>); + expect(page.find('h1').text()).toEqual('backup-account.title'); + }); +}); |