File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -231,8 +231,8 @@ class Rule extends EventEmitter {
231231 . then ( ( evaluationResult ) => {
232232 const passes = evaluationResult . result
233233 condition . factResult = evaluationResult . leftHandSideValue
234- if ( typeof condition . value === 'object' && condition . value !== null ) {
235- condition . value . factResult = evaluationResult . rightHandSideValue ;
234+ if ( typeof condition . value === 'object' && condition . value !== null ) {
235+ condition . value . factResult = evaluationResult . rightHandSideValue
236236 }
237237 condition . result = passes
238238 return passes
Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ describe('Acceptance', () => {
210210 result : true ,
211211 value : {
212212 fact : 'rule-created-fact' ,
213+ factResult : 2 ,
213214 path : '$.array'
214215 }
215216 }
You can’t perform that action at this time.
0 commit comments