Closed philippfromme closed 2 years ago
Allows configurable rules to be tested.
RuleTester.verify('my-rule', myRule, { valid: [], invalid: [ { name: 'with config', config: { elements: [ 'bpmn:Task' ] }, moddleElement: createModdle('<bpmn:Task id="Task_1" />', 'bpmn:Task'), report: { id: 'Task_1', message: 'Element of type <bpmn:Task> detected' } } ] });
Allows configurable rules to be tested.
Example