diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-07 15:16:00 -0200 |
---|---|---|
committer | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-07 17:35:15 -0200 |
commit | ebd5b3adce44a16213e5c1ec763a642899eba908 (patch) | |
tree | d4e95ed6377ba3db0ebd3f2f0e08d0a516f38520 /web-ui/test | |
parent | 9cfc90ca67f5f46882ed21b460a01b6d50ffa79c (diff) |
[#922] Add translation for Portuguese and English
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/spec/account_recovery/page.spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web-ui/test/spec/account_recovery/page.spec.js b/web-ui/test/spec/account_recovery/page.spec.js index f550a51e..3e19f244 100644 --- a/web-ui/test/spec/account_recovery/page.spec.js +++ b/web-ui/test/spec/account_recovery/page.spec.js @@ -1,12 +1,12 @@ import {shallow} from 'enzyme' import expect from 'expect' import React from 'react' -import Page from '../../../app/js/account_recovery/page' +import { Page } from '../../../app/js/account_recovery/page' describe('Page', () => { - 'use strict'; it('renders backup email page title', () => { - const page = shallow(<Page />); - expect(page.find('h1').text()).toEqual('E se vocĂȘ esquecer sua senha?'); + const mockT = key => key; + const page = shallow(<Page t={mockT}/>); + expect(page.find('h1').text()).toEqual('backup-account.title'); }); }); |