Simplifie la regex des fichiers Yaml

pull/18/head
Laurent Bossavit 2017-07-02 12:00:17 +02:00
parent bf27bf9133
commit b44f61e674
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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)
});
});