Skip to content

Commit

Permalink
Coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Melnikov committed Jul 14, 2016
1 parent fafb51b commit f192bb8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./lib');
module.exports = require('../lib');
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "HAPI rate limit plugin with Redis storage",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "./node_modules/jscover/bin/jscover lib lib-cov && JSCOV=1 mocha test -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -34,7 +34,10 @@
"devDependencies": {
"async": "^2.0.0",
"chai": "^3.5.0",
"coveralls": "^2.11.11",
"hapi": "8.4.x",
"mocha": "^2.5.3"
"jscover": "^1.0.0",
"mocha": "^2.5.3",
"mocha-lcov-reporter": "^1.2.0"
}
}
2 changes: 1 addition & 1 deletion test/global-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('HAPI with globally registered plugin', function () {
};

server.register({
register: require('../'),
register: require('./'),
options: options
}, function (err) {
if (err) {
Expand Down
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = process.env.JSCOV ? require('../lib-cov') : require('../lib');
2 changes: 1 addition & 1 deletion test/route-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('HAPI with route-specific settings', function () {
};

server.register({
register: require('../'),
register: require('./'),
options: options
}, function (err) {
if (err) {
Expand Down

0 comments on commit f192bb8

Please sign in to comment.