diff --git a/lib/middleware/check-progress.js b/lib/middleware/check-progress.js index 70ed83c..b993e52 100644 --- a/lib/middleware/check-progress.js +++ b/lib/middleware/check-progress.js @@ -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); } diff --git a/package.json b/package.json index 29c2dfd..761f2b0 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",