aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.babelrc1
-rw-r--r--package.json7
-rw-r--r--test/index.html29
-rw-r--r--test/index.js11
-rw-r--r--test/spec/test.js11
5 files changed, 18 insertions, 41 deletions
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 @@
-<!doctype html>
-<html>
-<head>
- <meta charset="utf-8">
- <title>Mocha Spec Runner</title>
- <link rel="stylesheet" href="../bower_components/mocha/mocha.css">
-</head>
-<body>
- <div id="mocha"></div>
- <script src="../bower_components/mocha/mocha.js"></script>
- <script>mocha.setup('bdd');</script>
- <script src="../bower_components/chai/chai.js"></script>
- <script>
- var assert = chai.assert;
- var expect = chai.expect;
- var should = chai.should();
- </script>
- <!-- bower:js -->
- <!-- endbower -->
- <!-- include source files here... -->
- <!-- include spec files here... -->
- <script src="spec/test.js"></script>
- <script>
- if (navigator.userAgent.indexOf('PhantomJS') === -1) {
- mocha.run();
- }
- </script>
-</body>
-</html>
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 () {
-
- });
- });
- });
-})();