From f1980911a7bf9dc7d4ccb3dc320831c47ae3f6d7 Mon Sep 17 00:00:00 2001 From: mama Date: Mon, 20 Nov 2017 16:20:01 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9paration=20des=20tests=20cass=C3=A9s=20p?= =?UTF-8?q?ar=20targetName=20->=20targetNames?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/reducers.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/reducers.test.js b/test/reducers.test.js index 67171f741..f15b78a56 100644 --- a/test/reducers.test.js +++ b/test/reducers.test.js @@ -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'})