Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Run both Node and browser tests on distribution version
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Jan 30, 2018
1 parent b293cff commit ad2ea93
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,5 +1,6 @@
language: node_js
node_js:
- "4"
- "6"
- "8"
env:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -10,10 +10,10 @@
"coverage": "istanbul cover _mocha",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
"lint": "standard",
"prepublishOnly": "npm run lint && npm run test && npm run build:dist",
"prepublishOnly": "npm run lint && npm run build:dist && npm run test",
"test": "npm run test:node && npm run test:browser",
"test:browser": "karma start karma.conf.js",
"test:node": "istanbul test mocha -- --reporter spec",
"test:browser": "npm run build:dist && karma start karma.conf.js",
"test:node": "npm run build:dist && istanbul test mocha -- --reporter spec",
"build:dist": "babel index.js --source-root ./ -d ./dist",
"build:docs": "documentation build ./index.js --github --sort-order='alpha' -f md > ./docs/index.md"
},
Expand Down
2 changes: 1 addition & 1 deletion test/defineFields.js
@@ -1,5 +1,5 @@
var assert = require('assert')
var ethUtil = require('../index.js')
var ethUtil = require('../dist/index.js')

describe('define', function () {
const fields = [{
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
@@ -1,5 +1,5 @@
var assert = require('assert')
var ethUtils = require('../index.js')
var ethUtils = require('../dist/index.js')
var BN = require('bn.js')

describe('zeros function', function () {
Expand Down

0 comments on commit ad2ea93

Please sign in to comment.