Skip to content

Commit

Permalink
Recovery phrase chips onboarding unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmashuang committed Mar 21, 2023
1 parent 5e4e98b commit ce03147
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import { renderWithProvider } from '../../../../test/lib/render-helpers';
import RecoveryPhraseChips from './recovery-phrase-chips';

describe('Recovery Phrase Chips Component', () => {
const TEST_SEED =
'debris dizzy just program just float decrease vacant alarm reduce speak stadium';

it('should have seed phrase as proper element length', () => {
const props = {
secretRecoveryPhrase: TEST_SEED.split(' '),
};

const { queryAllByTestId } = renderWithProvider(
<RecoveryPhraseChips {...props} />,
);

expect(queryAllByTestId(/recovery-phrase-chip-/u)).toHaveLength(12);
});
});

0 comments on commit ce03147

Please sign in to comment.