This repository has been archived by the owner on Jan 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#932] Tests next step of account recovery is translated
- Loading branch information
Anike Arni
committed
Mar 28, 2017
1 parent
d39f2b2
commit c7d135c
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
web-ui/src/account_recovery/forms/user_recovery_code_form.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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( | ||
<UserRecoveryCodeForm t={mockTranslations} /> | ||
); | ||
}); | ||
|
||
it('renders title for user recovery code', () => { | ||
expect(userRecoveryCodeForm.find('h1').text()).toEqual('account-recovery.user-form.title'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters