From 098ff3e4f70cc7f2b9b7e726aed85435fdc68091 Mon Sep 17 00:00:00 2001 From: Wei Lu Date: Mon, 10 Mar 2014 10:57:46 +0800 Subject: [PATCH] one vector per test --- package.json | 2 +- test/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ff6982b..cdce796 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/index.js b/test/index.js index 52aea87..8590c3f 100644 --- a/test/index.js +++ b/test/index.js @@ -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]) }) })