summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorTayane Fernandes <tayane.rmf@gmail.com>2017-02-07 17:48:30 -0200
committerGitHub <noreply@github.com>2017-02-07 17:48:30 -0200
commitb31c7cea4048b6e3e529652f006fbd04eb840529 (patch)
tree189c9aa1dff54a59aa0e5d297c6b85c1d3e1c78a /web-ui/test
parent4ee98503c8dcd715afceaf1baf7d4afb686ef02e (diff)
parentebd5b3adce44a16213e5c1ec763a642899eba908 (diff)
Merge pull request #961 from pixelated/backup-email-page
Add translation for account recovery
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/account_recovery/page.spec.js8
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');
});
});