diff --git a/src/utils/passphrase.test.js b/src/utils/passphrase.test.js index e6f7ba864..b7fe6cd77 100644 --- a/src/utils/passphrase.test.js +++ b/src/utils/passphrase.test.js @@ -95,7 +95,7 @@ describe('Passphrase', () => { let data; randoms.forEach((rand, i) => { - if (!data || data.percentage < 100) { + if ((!data || data.percentage < 100) && i < bytes.length) { data = generateSeed(data, rand); expect(data.byte).to.deep.equal(bytes[i]); }