From c7d135c20c70b6bd5936177db90a7b8ce2d278c0 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 28 Mar 2017 11:43:29 -0300 Subject: [#932] Tests next step of account recovery is translated --- .../forms/user_recovery_code_form.spec.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web-ui/src/account_recovery/forms/user_recovery_code_form.spec.js (limited to 'web-ui/src/account_recovery/forms/user_recovery_code_form.spec.js') diff --git a/web-ui/src/account_recovery/forms/user_recovery_code_form.spec.js b/web-ui/src/account_recovery/forms/user_recovery_code_form.spec.js new file mode 100644 index 00000000..ade96f9c --- /dev/null +++ b/web-ui/src/account_recovery/forms/user_recovery_code_form.spec.js @@ -0,0 +1,19 @@ +import { shallow } from 'enzyme'; +import expect from 'expect'; +import React from 'react'; +import { UserRecoveryCodeForm } from 'src/account_recovery/forms/user_recovery_code_form'; + +describe('UserRecoveryCodeForm', () => { + let userRecoveryCodeForm; + + beforeEach(() => { + const mockTranslations = key => key; + userRecoveryCodeForm = shallow( + + ); + }); + + it('renders title for user recovery code', () => { + expect(userRecoveryCodeForm.find('h1').text()).toEqual('account-recovery.user-form.title'); + }); +}); -- cgit v1.2.3