Skip to content

Commit

Permalink
deps: update to zeebe-bpmn-moddle@1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
misiekhardcore committed Nov 14, 2024
1 parent 66618e9 commit 0356acb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to [camunda-bpmn-js-behaviors](https://github.com/camunda/ca

___Note:__ Yet to be released changes appear here._

* `FEAT`: support `zeebe:TaskListener` ([#88](https://github.com/camunda/camunda-bpmn-js-behaviors/pull/88))

## 1.6.1

* `FIX`: remove empty `zeebe:VersionTag` ([#81](https://github.com/camunda/camunda-bpmn-js-behaviors/pull/81))
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 @@ -66,7 +66,7 @@
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"webpack": "^5.74.0",
"zeebe-bpmn-moddle": "^1.6.1"
"zeebe-bpmn-moddle": "^1.7.0"
},
"peerDependencies": {
"bpmn-js": ">= 9",
Expand Down
17 changes: 8 additions & 9 deletions test/camunda-cloud/CleanUpTaskListenersBehaviorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct

beforeEach(bootstrapCamundaCloudModeler(diagramXML));

describe('remove execution listeners if disallowed in element type', function() {
describe('remove task listeners if disallowed in element type', function() {

const testCases = [
{
Expand All @@ -25,10 +25,10 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct
}
},
{
title: 'User Task -> Gateway',
title: 'User Task -> ParallelGateway',
element: 'UserTask',
target: {
type: 'bpmn:Gateway'
type: 'bpmn:ParallelGateway'
}
}
];
Expand All @@ -48,9 +48,9 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct
// then
el = elementRegistry.get(element);

const executionListenersContainer = getTaskListenersContainer(el);
const taskListenersContainer = getTaskListenersContainer(el);

expect(executionListenersContainer).not.to.exist;
expect(taskListenersContainer).not.to.exist;
}));


Expand Down Expand Up @@ -85,15 +85,15 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct

// then
el = elementRegistry.get(element);
const executionListenersContainer = getTaskListenersContainer(el);
const taskListenersContainer = getTaskListenersContainer(el);

expect(executionListenersContainer).not.to.exist;
expect(taskListenersContainer).not.to.exist;
}));
});
}
});

describe('should remove execution listeners of disallowed type', function() {
describe('should remove task listeners of disallowed type', function() {

it('should execute', inject(function(bpmnReplace, elementRegistry) {

Expand Down Expand Up @@ -163,7 +163,6 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct
// then
el = elementRegistry.get('NonZeebeUserTask');
const extensionElements = getBusinessObject(el).get('extensionElements');
console.log(extensionElements.get('values'));

expect(extensionElements.get('values')).to.have.lengthOf(0);
}));
Expand Down

0 comments on commit 0356acb

Please sign in to comment.