diff --git a/package.json b/package.json index d549119332..b19446e7d3 100644 --- a/package.json +++ b/package.json @@ -21,15 +21,14 @@ "devDependencies": { "babel-preset-react": "^6.5.0", "babelify": "^7.2.0", - "mocha": "^2.5.3", - "should": "^9.0.2", "standard": "^7.0.1", - "standard-reporter": "^1.0.5" + "standard-reporter": "^1.0.5", + "tape": "^4.6.0" }, "scripts": { "start_node": "eth --rpccorsdomain \"*\" -j -v 0", "build": "mkdir -p build; browserify -t [ babelify --presets [ react ] ] src/index.js -o build/app.js", - "test": "standard && mocha" + "test": "standard && tape ./test/tests.js" }, "repository": { "type": "git", diff --git a/test/index.js b/test/index.js index 1542d841f9..00b04e0274 100644 --- a/test/index.js +++ b/test/index.js @@ -1,12 +1,11 @@ -/* global describe it*/ -var should = require('should') - +'use strict' +var tape = require('tape') var init = require('../src/helpers/init') -describe('index', function () { - describe('loadContext', function () { - it('web3', function () { - var context = init.loadContext() - should.exist(context.web3) - }) +tape('index', function (t) { + t.test('loadContext - web3', function (st) { + var context = init.loadContext() + st.notEqual(context.web3, undefined) + st.notEqual(context.web3, null) + st.end() }) }) diff --git a/test/tests.js b/test/tests.js new file mode 100644 index 0000000000..5e08bb550f --- /dev/null +++ b/test/tests.js @@ -0,0 +1,2 @@ +'use strict' +require('./index.js')