all: consistent import order

This commit is contained in:
Daniel Cousens 2014-06-23 13:40:38 +10:00
parent 6488b6362e
commit 3552491505
2 changed files with 8 additions and 7 deletions

View File

@ -1,12 +1,13 @@
var CryptoJS = require('crypto-js')
var path = require('path')
var includeFolder = require('include-folder')
var Wordlists = includeFolder(path.join(__dirname, 'wordlists'))
var crypto = require('crypto')
var includeFolder = require('include-folder')
var path = require('path')
var wordlists = includeFolder(path.join(__dirname, 'wordlists'))
function BIP39(language) {
language = language || 'en'
this.wordlist = JSON.parse(Wordlists[language])
this.wordlist = JSON.parse(wordlists[language])
}
BIP39.prototype.mnemonicToSeed = function(mnemonic, password) {

View File

@ -1,8 +1,8 @@
var vectors = require('./vectors.json').english
var BIP39 = require('../index.js')
var wordlist = require('../wordlists/en.json')
var assert = require('assert')
var wordlist = require('../wordlists/en.json')
var vectors = require('./vectors.json').english
var BIP39 = require('../index.js')
var bip39 = new BIP39()
describe('constructor', function(){