one vector per test

This commit is contained in:
Wei Lu 2014-03-10 10:57:46 +08:00
parent ffb8e25b4b
commit 098ff3e4f7
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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])
})
})