1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 09:46:58 +01:00

Merge remote-tracking branch 'origin/feature/tests'

This commit is contained in:
vrde 2017-06-16 11:12:56 +02:00
commit 5e2c3c90cd
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D
2 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,7 @@
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
"build:dist": "cross-env NODE_ENV=production webpack -p",
"clean": "rimraf dist/bundle dist/node",
"test": "npm run lint",
"test": "npm run lint && ava",
"release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive",
@ -26,6 +26,7 @@
"precommit": "npm run lint"
},
"devDependencies": {
"ava": "^0.19.1",
"babel-cli": "^6.22.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^7.0.0",

11
test/test.js Normal file
View File

@ -0,0 +1,11 @@
import test from 'ava'
test('foo', t => {
t.pass()
})
test('bar', async t => {
const bar = Promise.resolve('bar')
t.is(await bar, 'bar')
})