database and ajax test added

This commit is contained in:
2019-02-01 14:06:44 +01:00
parent b5eb4c2b79
commit f3c33a35cd
562 changed files with 154325 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
test:
@NODE_ENV=test ./node_modules/.bin/mocha $(T) $(TESTS)
test-cov:
@NODE_ENV=test node \
node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
-- -u exports \
open-cov:
open coverage/lcov-report/index.html
lint:
@NODE_ENV=test node ./node_modules/eslint/bin/eslint.js .
test-travis:
@NODE_ENV=test node \
node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
--report lcovonly \
--bail
@NODE_ENV=test node \
./node_modules/eslint/bin/eslint.js .
.PHONY: test test-cov open-cov lint test-travis