Skip to content

Commit

Permalink
test: add avajs for tests
Browse files Browse the repository at this point in the history
Adds avajs and a passing test suite to sanity check the setup.

Partially addresses #17.
  • Loading branch information
jniles committed Oct 13, 2019
1 parent 9380b8f commit 5ab4dc6
Show file tree
Hide file tree
Showing 3 changed files with 2,097 additions and 31 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"wkhtmltopdf": "^0.3.4"
},
"devDependencies": {
"ava": "^2.3.0",
"eslint": "^6.2.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.16.0"
Expand All @@ -42,12 +43,13 @@
"lib": "lib"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "ava",
"start": "node index.js"
},
"keywords": [
"DHIS2"
],
"author": "jniles",
"license": "MIT"
"license": "MIT",
"repository": "git@github.com:IMA-WorldHealth/sunfish.git"
}
5 changes: 5 additions & 0 deletions test/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import test from 'ava';

test('sanity', (t) => {
t.pass();
});
Loading

0 comments on commit 5ab4dc6

Please sign in to comment.