Skip to content

Commit

Permalink
Add simple test for register.js functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Oct 16, 2018
1 parent 7ddf225 commit eb0f3c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -10,6 +10,7 @@ env:
- BUILD_TIMEOUT=10000

script:
- npm run test:register
- npm run lint
- node_modules/.bin/acorn --ecma5 dist/buble-browser.cjs.js > /dev/null
- node_modules/.bin/acorn --ecma5 dist/buble-browser-deps.umd.js > /dev/null
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -20,6 +20,8 @@
"build": "rollup -c",
"test": "mocha test/test.js",
"pretest": "npm run build",
"test:register": "cat src/program/Node.js | sed 's/export default/module.exports =/' | node -r ./register.js",
"test:full": "npm run test && npm run test:register && npm run lint",
"prepublish": "npm test",
"lint": "eslint bin/ src/ test/test.js test/utils/ register.js rollup.*.js"
},
Expand Down

0 comments on commit eb0f3c5

Please sign in to comment.