We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15eab5a commit 3a90876Copy full SHA for 3a90876
test/engine.test.ts
@@ -22,6 +22,9 @@ describe('rules engine', () => {
22
then: {
23
actions: [{ type: 'log', params: { message: 'Hi friend!' } }],
24
},
25
+ otherwise: {
26
+ actions: [{ type: 'call', params: { message: 'Who are you?' } }],
27
+ },
28
29
};
30
engine.setRules(rules);
@@ -30,6 +33,7 @@ describe('rules engine', () => {
33
log.mockClear();
31
34
await engine.run({ firstName: 'Bill' });
32
35
expect(log).not.toHaveBeenCalled();
36
+ expect(call).toHaveBeenCalledWith({ message: 'Who are you?' });
37
});
38
39
it('should access a property via path', async () => {
0 commit comments