mirror of
https://github.com/status-im/bip39.git
synced 2025-01-10 12:45:57 +00:00
12 lines
316 B
JavaScript
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])
|
|
})
|
|
})
|
|
})
|