Réparation des tests cassés par targetName -> targetNames

pull/138/head
mama 2017-11-20 16:20:01 +01:00
parent eeab24cdc1
commit f1980911a7
1 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ describe('fold', function() {
{nom: "bb", question: "?", titre: "b", espace: "top"}],
rules = rawRules.map(enrichRule),
reducer = reduceSteps(tracker, rules, stateSelector),
action = {type:'START_CONVERSATION', targetName: 'startHere'},
action = {type:'START_CONVERSATION', targetNames: ['startHere']},
// situation = analyseTopDown(rules,"startHere")(stateSelector({})),
// objectives = getObjectives(stateSelector({}), situation.root, situation.parsedRules),
// missing = collectMissingVariables(stateSelector({}),situation),
@ -47,7 +47,7 @@ describe('fold', function() {
rules = rawRules.map(enrichRule),
reducer = reduceSteps(tracker, rules, stateSelector)
var step1 = reducer({},{type:'START_CONVERSATION', targetName: 'startHere'})
var step1 = reducer({},{type:'START_CONVERSATION', targetNames: ['startHere']})
fakeState['top . aa'] = 1
var step2 = reducer(step1,{type:'STEP_ACTION', name: 'fold', step: 'top . aa'})
fakeState['top . bb'] = 1
@ -81,7 +81,7 @@ describe('fold', function() {
rules = rawRules.map(enrichRule),
reducer = reduceSteps(tracker, rules, stateSelector)
var step1 = reducer({},{type:'START_CONVERSATION', targetName: 'startHere'})
var step1 = reducer({},{type:'START_CONVERSATION', targetNames: ['startHere']})
fakeState['top . aa'] = 1
var step2 = reducer(step1,{type:'STEP_ACTION', name: 'fold', step: 'top . aa'})
@ -115,7 +115,7 @@ describe('fold', function() {
rules = rawRules.map(enrichRule),
reducer = reduceSteps(tracker, rules, stateSelector)
var step1 = reducer({},{type:'START_CONVERSATION', targetName: 'startHere'})
var step1 = reducer({},{type:'START_CONVERSATION', targetNames: ['startHere']})
fakeState['top . aa'] = 1
var step2 = reducer(step1,{type:'STEP_ACTION', name: 'fold', step: 'top . aa'})
var step3 = reducer(step2,{type:'STEP_ACTION', name: 'unfold', step: 'top . bb'})