diff --git a/test/predicate.test.js b/test/predicate.test.js index 8f92031..0ca9fe1 100644 --- a/test/predicate.test.js +++ b/test/predicate.test.js @@ -27,7 +27,13 @@ let engine = new Engine([ conditions: { age: { range: [20, 40] } }, event: "hit", }, -]); +], { + properties: { + age: { + type: 'number' + } + } +}); test("not in range left", () => { return engine.run({ age: 10 }).then(events => expect(events).toEqual([]));