diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..9d8d51656 --- /dev/null +++ b/.babelrc @@ -0,0 +1 @@ +{ "presets": ["es2015"] } 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" diff --git a/test/index.html b/test/index.html deleted file mode 100644 index 6498d5fcc..000000000 --- a/test/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Mocha Spec Runner - - - -
- - - - - - - - - - - - diff --git a/test/index.js b/test/index.js new file mode 100644 index 000000000..1ff7b673a --- /dev/null +++ b/test/index.js @@ -0,0 +1,11 @@ +var assert = require('assert'); +var idStore = require('../app/scripts/lib/idStore') + +describe('IdentityStore', function() { + describe('#_createFirstWallet', function () { + it('should return the expected keystore', function () { + + assert.equal(1,1) + }); + }); +}); diff --git a/test/spec/test.js b/test/spec/test.js deleted file mode 100644 index 0fca0fb57..000000000 --- a/test/spec/test.js +++ /dev/null @@ -1,11 +0,0 @@ -(function () { - 'use strict'; - - describe('Give it some context', function () { - describe('maybe a bit more context here', function () { - it('should run here few assertions', function () { - - }); - }); - }); -})();