switch to tape

pull/7/head
yann300 9 years ago
parent 0d9b667e1b
commit 2176ad1f27
  1. 7
      package.json
  2. 17
      test/index.js
  3. 2
      test/tests.js

@ -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",

@ -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()
})
})

@ -0,0 +1,2 @@
'use strict'
require('./index.js')
Loading…
Cancel
Save