Browse Source

Improve test readability

pull/2/head
Luke Childs 6 years ago
parent
commit
0e03887504
  1. 9
      test/unit.js

9
test/unit.js

@ -18,15 +18,16 @@ test('Seed phrases contain the words "much", "such" and "very"', t => {
test('Don\'t include the same Doge modifier twice', t => { test('Don\'t include the same Doge modifier twice', t => {
new Array(1000).fill().forEach(() => { new Array(1000).fill().forEach(() => {
const seedPhrase = dogeSeed(); const words = dogeSeed().split(' ');
t.not(seedPhrase.split(' ')[0], seedPhrase.split(' ')[2]);
t.not(words[0], words[2]);
}); });
}); });
test('Default seed phrase length is 12 words', t => { test('Default seed phrase length is 12 words', t => {
const seedPhrase = dogeSeed(); const words = dogeSeed().split(' ');
t.is(seedPhrase.split(' ').length, 12); t.is(words.length, 12);
}); });
test('Bit length is configurable', t => { test('Bit length is configurable', t => {

Loading…
Cancel
Save