Skip to content

Commit

Permalink
deps: update bpmnlint-plugin-camunda-compat to v2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smbea authored and merge-me[bot] committed Jan 19, 2024
1 parent fbfa639 commit c0f1bed
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
4 changes: 4 additions & 0 deletions lib/utils/error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ function getExtensionElementRequiredErrorMessage(report) {
return `${ getIndefiniteArticle(typeString) } <${ typeString }> must have a defined <Implementation>`;
}

if (requiredExtensionElement === 'zeebe:FormDefinition') {
return `${ getIndefiniteArticle(typeString) } <${ typeString }> must have a defined <Form>`;
}

return message;
}

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@bpmn-io/diagram-js-ui": "^0.2.2",
"bpmn-moddle": "^8.0.0",
"bpmnlint": "^9.2.0",
"bpmnlint-plugin-camunda-compat": "^2.13.0",
"bpmnlint-plugin-camunda-compat": "^2.14.0",
"bpmnlint-utils": "^1.0.2",
"camunda-bpmn-moddle": "^7.0.1",
"clsx": "^2.0.0",
Expand Down
17 changes: 17 additions & 0 deletions test/spec/utils/error-messages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,23 @@ describe('utils/error-messages', function() {
expect(errorMessage).to.equal('A <Script Task> must have a defined <Implementation>');
});


it('should adjust (user task and form)', async function() {

// given
const node = createElement('bpmn:UserTask');

const { default: rule } = await import('bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form');

const report = await getLintError(node, rule, { version: '8.2' });

// when
const errorMessage = getErrorMessage(report);

// then
expect(errorMessage).to.equal('A <User Task> must have a defined <Form>');
});

});


Expand Down

0 comments on commit c0f1bed

Please sign in to comment.