break up BIP39 tests so the individual ones run faster
...so that travis stops complaining about this otherwise slow test
This commit is contained in:
parent
01c48ff8cd
commit
adffabd376
|
@ -144,9 +144,11 @@ describe('BIP39', function() {
|
|||
it('should generate a mnemonic phrase', function() {
|
||||
var phrase = BIP39.mnemonic(BIP39WordlistEn, 128);
|
||||
});
|
||||
it('should pass test vectors', function() {
|
||||
|
||||
var vectors = bip39_vectors['english'];
|
||||
for (var v = 0 ; v < vectors.length ; v++) {
|
||||
(function(v){
|
||||
it('should pass test vector ' + v, function() {
|
||||
var vector = vectors[v];
|
||||
var code = vector[0];
|
||||
var mnemonic = vector[1];
|
||||
|
@ -156,8 +158,10 @@ describe('BIP39', function() {
|
|||
BIP39.check(BIP39WordlistEn, mnemonic).should.be.true;
|
||||
mnemonic1.should.equal(mnemonic);
|
||||
seed1.toString('hex').should.equal(seed)
|
||||
}
|
||||
});
|
||||
})(v);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue