Commit 2176ad1f authored by yann300's avatar yann300

switch to tape

parent 0d9b667e
...@@ -21,15 +21,14 @@ ...@@ -21,15 +21,14 @@
"devDependencies": { "devDependencies": {
"babel-preset-react": "^6.5.0", "babel-preset-react": "^6.5.0",
"babelify": "^7.2.0", "babelify": "^7.2.0",
"mocha": "^2.5.3",
"should": "^9.0.2",
"standard": "^7.0.1", "standard": "^7.0.1",
"standard-reporter": "^1.0.5" "standard-reporter": "^1.0.5",
"tape": "^4.6.0"
}, },
"scripts": { "scripts": {
"start_node": "eth --rpccorsdomain \"*\" -j -v 0", "start_node": "eth --rpccorsdomain \"*\" -j -v 0",
"build": "mkdir -p build; browserify -t [ babelify --presets [ react ] ] src/index.js -o build/app.js", "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": { "repository": {
"type": "git", "type": "git",
......
/* global describe it*/ 'use strict'
var should = require('should') var tape = require('tape')
var init = require('../src/helpers/init') var init = require('../src/helpers/init')
describe('index', function () { tape('index', function (t) {
describe('loadContext', function () { t.test('loadContext - web3', function (st) {
it('web3', function () { var context = init.loadContext()
var context = init.loadContext() st.notEqual(context.web3, undefined)
should.exist(context.web3) st.notEqual(context.web3, null)
}) st.end()
}) })
}) })
'use strict'
require('./index.js')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment