Skip to content

Commit eeafc94

Browse files
author
Iago Sardiña
committed
Fix test and comply with styling
1 parent 0d35a58 commit eeafc94

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/rule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

test/acceptance/acceptance.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)