diff --git a/source/engine/load-rules.js b/source/engine/load-rules.js index 0fb3dd574..57af2a535 100644 --- a/source/engine/load-rules.js +++ b/source/engine/load-rules.js @@ -1,6 +1,5 @@ import R from 'ramda' -console.log (typeof __webpack_require__) // This is a mock of webpack's require.context, for testing purposes if (typeof __webpack_require__ === 'undefined') { const fs = require('fs'); @@ -43,11 +42,11 @@ if (typeof __webpack_require__ === 'undefined') { let directoryLoaders = [ require.context('../../règles/rémunération-travail/cdd', - true, /([A-Za-z\u00C0-\u017F]|\.|-|_)+.yaml$/), + true, /.yaml$/), require.context('../../règles/rémunération-travail/entités/ok', - true, /([A-Za-z\u00C0-\u017F]|\.|-|_)+.yaml$/), + true, /.yaml$/), require.context('../../règles/rémunération-travail/cotisations/ok', - true, /([A-Za-z\u00C0-\u017F]|\.|-|_)+.yaml$/), + true, /.yaml$/), ] // require.context returns an object which diff --git a/test/generateQuestions.test.js b/test/generateQuestions.test.js index 2f8f2e4a6..b113aa85a 100644 --- a/test/generateQuestions.test.js +++ b/test/generateQuestions.test.js @@ -25,7 +25,6 @@ describe('buildNextSteps', function() { it('should generate questions from the real rule set', function() { let situation = analyseSituation(rules,"surcoût CDD")(stateSelector), result = buildNextSteps(rules, situation) - console.log(result) }); });