Skip to content

Commit

Permalink
Add simple jest test suite for hugla constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
noosxe committed Aug 5, 2017
1 parent 9257707 commit 84c910a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"compile": "babel --presets es2015,es2016 -d lib/ src/",
"prepublish": "npm run compile",
"lint": "./node_modules/.bin/eslint --ext .js src",
"test": "",
"test-ci": ""
"test": "./node_modules/.bin/jest",
"test-ci": "./node_modules/.bin/jest --coverage"
}
}
7 changes: 7 additions & 0 deletions test/hugla.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const Hugla = require('./../lib/hugla.js');

test('new Hugla() should throw an Error if appDir is not provided', () => {
expect(() => {
new Hugla();
}).toThrow(Error);
});
4 changes: 0 additions & 4 deletions test/testconf.json

This file was deleted.

0 comments on commit 84c910a

Please sign in to comment.