Add Tests #22

Merged
joeybaker merged 6 commits from tests into master 2016-09-06 04:55:24 +00:00
2 changed files with 15 additions and 4 deletions
Showing only changes of commit de0685c8bb - Show all commits

View File

@ -1,3 +1,9 @@
{ {
"extends": "pichak" "plugins": [
"ava"
],
"extends": [
"pichak",
"plugin:ava/recommended"
]
} }

View File

@ -9,8 +9,9 @@
} }
}, },
"scripts": { "scripts": {
"lint": "eslint src test", "lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1", "test": "ava --require babel-register --source='*.test.js'",
"tdd": "ava --require babel-register --source='*.test.js' --watch",
"build": "scripty", "build": "scripty",
"watch": "scripty" "watch": "scripty"
}, },
@ -23,6 +24,7 @@
"author": "Mahdi Dibaiee <mdibaiee@aol.com> (http://dibaiee.ir/)", "author": "Mahdi Dibaiee <mdibaiee@aol.com> (http://dibaiee.ir/)",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"ava": "^0.16.0",
"babel-cli": "^6.10.1", "babel-cli": "^6.10.1",
"babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-closure-elimination": "^1.0.6", "babel-plugin-closure-elimination": "^1.0.6",
@ -31,8 +33,11 @@
"babel-preset-stage-1": "^6.5.0", "babel-preset-stage-1": "^6.5.0",
"eslint": "^3.4.0", "eslint": "^3.4.0",
"eslint-config-pichak": "1.1.0", "eslint-config-pichak": "1.1.0",
"eslint-plugin-ava": "^3.0.0",
"ghooks": "1.0.3", "ghooks": "1.0.3",
"scripty": "^1.6.0" "scripty": "^1.6.0",
"sinon": "^1.17.5",
"sinon-bluebird": "^3.0.2"
}, },
"dependencies": { "dependencies": {
"boom": "^3.2.2", "boom": "^3.2.2",