Skip to content

Commit 1f3a7d9

Browse files
committed
Merge branch 'master' of github.com:coding-blocks/express-jsonapi-controller
2 parents 7db6bc1 + f8c42fa commit 1f3a7d9

File tree

4 files changed

+451
-25
lines changed

4 files changed

+451
-25
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dist: trusty
2+
3+
language: node_js
4+
node_js: "stable"
5+
6+
install:
7+
- yarn install
8+
9+
env:
10+
# add env variables here
11+
12+
script:
13+
- yarn run test

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Generic Base Controller for express to generate JSON API response",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
7+
"test": "./node_modules/mocha/bin/mocha",
88
"lint": "eslint index.js example lib",
99
"lint:fix": "eslint index.js example lib --fix"
1010
},
@@ -34,12 +34,14 @@
3434
"ramda": "^0.26.1"
3535
},
3636
"devDependencies": {
37+
"chai": "^4.2.0",
3738
"eslint": "^5.16.0",
3839
"eslint-config-standard": "^12.0.0",
3940
"eslint-plugin-import": "^2.17.2",
4041
"eslint-plugin-node": "^8.0.1",
4142
"eslint-plugin-promise": "^4.1.1",
42-
"eslint-plugin-standard": "^4.0.0"
43+
"eslint-plugin-standard": "^4.0.0",
44+
"mocha": "^6.1.4"
4345
},
4446
"eslintIgnore": [
4547
"node_modules/"

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('chai')
2+
require('mocha')
3+
4+
console.log("Tests are running")

0 commit comments

Comments
 (0)