Skip to content

Commit

Permalink
updates missing prerequisite error message (#28)
Browse files Browse the repository at this point in the history
* updates missing prerequisite error message

* updates missing prerequisite error message

* updates mocha version to fix npm audit vulnerabilities

* ensures functional tests exit after being run after mocha update
  • Loading branch information
johndallen authored and lennym committed Sep 3, 2018
1 parent 146f990 commit ce0aa0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/middleware/check-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = (route, controller, steps, start) => {
if (visited.length || !prereqs.length || route === start) {
next();
} else {
const err = new Error('Missing prerequisite');
const err = new Error('Attempt to access page without prerequisite steps being completed');
err.code = 'MISSING_PREREQ';
next(err);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:lint": "eslint .",
"test:unit": "istanbul cover _mocha -- --recursive --require test/helpers",
"test:check-coverage": "istanbul check-coverage --statement 85.53 --branch 81.58 --function 66.67 --line 86.21",
"test:functional": "funkie mocha ./functional-tests --opts ./functional-tests/mocha.opts",
"test:functional": "funkie mocha ./functional-tests --opts ./functional-tests/mocha.opts --exit",
"test:snyk": "snyk test --dev",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect",
Expand Down Expand Up @@ -51,7 +51,7 @@
"hof-util-autofill": "^1.0.2",
"hogan-express-strict": "^0.5.4",
"istanbul": "^0.4.3",
"mocha": "^3.1.2",
"mocha": "^5.2.0",
"mocha-sandbox": "^1.0.0",
"reqres": "^1.2.0",
"sinon": "^1.17.6",
Expand Down

0 comments on commit ce0aa0a

Please sign in to comment.