bip39/test/index.js
2014-03-10 10:57:46 +08:00

12 lines
316 B
JavaScript

var vectors = require('./vectors.json').english
var bip39 = require('../index.js')
var assert = require('assert')
describe('mnemonicToSeed', function(){
vectors.forEach(function(v, i){
it('works for tests vector ' + i, function(){
assert.equal(bip39.mnemonicToSeed(v[1], 'TREZOR'), v[2])
})
})
})