summaryrefslogtreecommitdiff
path: root/web-ui/test/unit/account_recovery/page.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/unit/account_recovery/page.spec.js')
-rw-r--r--web-ui/test/unit/account_recovery/page.spec.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/web-ui/test/unit/account_recovery/page.spec.js b/web-ui/test/unit/account_recovery/page.spec.js
index 6a139167..6046c5d5 100644
--- a/web-ui/test/unit/account_recovery/page.spec.js
+++ b/web-ui/test/unit/account_recovery/page.spec.js
@@ -4,12 +4,11 @@ import React from 'react';
import { Page } from 'src/account_recovery/page';
describe('Page', () => {
- let mockT;
let page;
beforeEach(() => {
- mockT = key => key;
- page = shallow(<Page t={mockT} />);
+ const mockTranslations = key => key;
+ page = shallow(<Page t={mockTranslations} />);
});
it('renders backup email page title', () => {