data = {
}
test(data, {
path: '/foo',
value: 'whatever',
op: 'contains',
ignore_case: true
});
With data.foo undefined, and ignore_case set on the predicate, the test throws an error instead of returning false.
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined