summaryrefslogtreecommitdiff
path: root/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js
diff options
context:
space:
mode:
authorSriram Viswanathan <sriramv@thoughtworks.com>2017-04-04 17:57:48 -0300
committerSriram Viswanathan <sriramv@thoughtworks.com>2017-04-04 17:57:48 -0300
commit50d64627a924234ef5858b82bee8c9c33fb08f09 (patch)
treef2af020cd63976db53c8d2325b2b9ba4beb6063e /web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js
parent92523b7c8ceb8f3b7adf282e1b9e573ce5b37f04 (diff)
[#938] Adds backup account step to forgot password flow
with @anikarni
Diffstat (limited to 'web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js')
-rw-r--r--web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js b/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js
new file mode 100644
index 00000000..3b27b369
--- /dev/null
+++ b/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js
@@ -0,0 +1,17 @@
+import { shallow } from 'enzyme';
+import expect from 'expect';
+import React from 'react';
+import { BackupAccountStep } from './backup_account_step';
+
+describe('BackupAccountStep', () => {
+ let backupAccountStep;
+
+ beforeEach(() => {
+ const mockTranslations = key => key;
+ backupAccountStep = shallow(<BackupAccountStep t={mockTranslations} />);
+ });
+
+ it('renders title for backup account step', () => {
+ expect(backupAccountStep.find('h1').text()).toEqual('account-recovery.backup-account-step.title');
+ });
+});