Explain on one-sided rules throws error
Closed this issue · 2 comments
dillonjason commented
const rule = {
left: '@test',
fn: 'empty'
}
const data = {
test: 'thing'
}
console.log(explain(rule, data)) // throws regent.explain must be called with a regent rule
console.log(evaluate(rule, data)) // executes fine
eisenivan commented
Working on this now...
eisenivan commented
Fixed in v2.0.3