mirror of https://github.com/status-im/bip39.git
one vector per test
This commit is contained in:
parent
ffb8e25b4b
commit
098ff3e4f7
|
@ -4,7 +4,7 @@
|
|||
"description": "Bitcoin BIP39: Mnemonic code for generating deterministic keys",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "mocha test"
|
||||
"test": "mocha --reporter list test/*.js"
|
||||
},
|
||||
"author": "Wei Lu",
|
||||
"license": "ISC",
|
||||
|
|
|
@ -3,8 +3,8 @@ var bip39 = require('../index.js')
|
|||
var assert = require('assert')
|
||||
|
||||
describe('mnemonicToSeed', function(){
|
||||
it('works for tests vectors', function(){
|
||||
vectors.forEach(function(v){
|
||||
vectors.forEach(function(v, i){
|
||||
it('works for tests vector ' + i, function(){
|
||||
assert.equal(bip39.mnemonicToSeed(v[1], 'TREZOR'), v[2])
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue