diff options
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'); }); }); |