Skip to content

Commit

Permalink
Merge pull request #11 from jahredhope/unit-test-server
Browse files Browse the repository at this point in the history
Add unit tests to server modules
  • Loading branch information
vzhou842 authored Feb 24, 2020
2 parents 199d5ef + 55ddac3 commit 2a0610d
Show file tree
Hide file tree
Showing 9 changed files with 7,388 additions and 3,040 deletions.
9 changes: 4 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"parser": "babel-eslint",
"extends": "airbnb-base",
"extends": ["airbnb-base", "plugin:jest/recommended"],
"env": {
"browser": true,
"node": true,
"es6": true
"es6": true,
"jest/globals": true
},
"plugins": [
"import"
],
"plugins": ["import", "jest"],
"rules": {
"arrow-parens": ["error", "as-needed"],
"no-console": "off",
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
script:
- npm install
- npm run lint
- npm test
cache:
directories:
- node_modules
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ $ npm install
$ npm run build
$ npm start
```

## Tests

To run the tests for this this project, simply

```bash
$ npm install
$ npm test
```
Loading

0 comments on commit 2a0610d

Please sign in to comment.