From da31f4daed76a3457df12f94bbf2974621b70a0c Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 24 Mar 2016 17:51:46 -0700 Subject: Added basic es6 mocha test suite --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 9f700e924..fec837640 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,12 @@ "public": false, "private": true, "scripts": { - "start": "gulp dev" + "start": "gulp dev", + "test": "mocha --compilers js:babel-register" }, "dependencies": { "async": "^1.5.2", + "bip39": "^2.2.0", "clone": "^1.0.2", "dnode": "^1.2.2", "end-of-stream": "^1.1.0", @@ -28,6 +30,8 @@ "xtend": "^4.0.1" }, "devDependencies": { + "babel-preset-es2015": "^6.6.0", + "babel-register": "^6.7.2", "browserify": "^13.0.0", "del": "^2.2.0", "gulp": "github:gulpjs/gulp#4.0", @@ -37,6 +41,7 @@ "gulp-watch": "^4.3.5", "jshint-stylish": "~0.1.5", "lodash.assign": "^4.0.6", + "tape": "^4.5.1", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", "watchify": "^3.7.0" -- cgit v1.2.3 From 37fd45e5b70a66ff976cab0d1815374063e29d10 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 25 Mar 2016 12:41:18 -0700 Subject: Convert to bip44 hdTrees Added initial test just to verify we can recover the accounts we generate in this way. Still need to add compliance test to make sure this interoperates with testrpc's new mnemonic flag. --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index fec837640..da7686c0a 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,11 @@ "private": true, "scripts": { "start": "gulp dev", - "test": "mocha --compilers js:babel-register" + "test": "mocha --compilers js:babel-register", + "watch": "mocha watch --compilers js:babel-register" }, "dependencies": { "async": "^1.5.2", - "bip39": "^2.2.0", "clone": "^1.0.2", "dnode": "^1.2.2", "end-of-stream": "^1.1.0", @@ -39,8 +39,11 @@ "gulp-sourcemaps": "^1.6.0", "gulp-util": "^3.0.7", "gulp-watch": "^4.3.5", + "jsdom": "^8.1.0", "jshint-stylish": "~0.1.5", "lodash.assign": "^4.0.6", + "mocha": "^2.4.5", + "mocha-jsdom": "^1.1.0", "tape": "^4.5.1", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", -- cgit v1.2.3 From a2c7ccafa6b4cdbd5f1725f7bf40189ad987cffa Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 25 Mar 2016 14:51:19 -0700 Subject: Implemented BIP44 compliance test. Also added the hdPath that Christian had told me to our calls to the LightWallet, but this does not seem to have made us generate the same accounts as `testrpc` yet. --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index da7686c0a..e31f9e09a 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "private": true, "scripts": { "start": "gulp dev", - "test": "mocha --compilers js:babel-register", - "watch": "mocha watch --compilers js:babel-register" + "test": "mocha --compilers js:babel-register --recursive", + "watch": "mocha watch --compilers js:babel-register --recursive" }, "dependencies": { "async": "^1.5.2", @@ -44,6 +44,8 @@ "lodash.assign": "^4.0.6", "mocha": "^2.4.5", "mocha-jsdom": "^1.1.0", + "mocha-sinon": "^1.1.5", + "sinon": "^1.17.3", "tape": "^4.5.1", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", -- cgit v1.2.3 From 7fc8195cb181807ff68c7c2ca50677eb414c7210 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 25 Mar 2016 15:43:26 -0700 Subject: Remove broken npm script --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index e31f9e09a..6c401822b 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,7 @@ "private": true, "scripts": { "start": "gulp dev", - "test": "mocha --compilers js:babel-register --recursive", - "watch": "mocha watch --compilers js:babel-register --recursive" + "test": "mocha --compilers js:babel-register --recursive" }, "dependencies": { "async": "^1.5.2", -- cgit v1.2.3 From 335a03d6506a3135ab01758a8734c60b6178cdb2 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 25 Mar 2016 15:45:23 -0700 Subject: Removed unused dependency --- package.json | 1 - 1 file changed, 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 6c401822b..f482fd4f6 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,6 @@ "mocha-jsdom": "^1.1.0", "mocha-sinon": "^1.1.5", "sinon": "^1.17.3", - "tape": "^4.5.1", "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", "watchify": "^3.7.0" -- cgit v1.2.3