Skip to content

Commit

Permalink
chore: helper name
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme authored and barmac committed Dec 2, 2024
1 parent 51b28d5 commit 9ededd5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/camunda-cloud/CleanUpTaskListenersBehaviorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct

// then
el = elementRegistry.get(element);
const extensionElements = getElementExtensions(el);
const extensionElements = getExtensionElements(el);

expect(extensionElements.get('values')).to.have.lengthOf(2);
}));
Expand Down Expand Up @@ -167,7 +167,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct

// then
el = elementRegistry.get('NonZeebeUserTask');
const extensionElements = getElementExtensions(el);
const extensionElements = getExtensionElements(el);

expect(extensionElements.get('values')).to.have.lengthOf(0);
}));
Expand All @@ -183,7 +183,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct
modeling.updateModdleProperties(el, taskListenersContainer, { listeners: [] });

// then
const extensionElements = getElementExtensions(el);
const extensionElements = getExtensionElements(el);

expect(extensionElements.get('values')).to.have.lengthOf(1);
}));
Expand All @@ -195,7 +195,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct
const el = elementRegistry.get('UserTask');

// when
const extensionElements = getElementExtensions(el);
const extensionElements = getExtensionElements(el);
modeling.updateModdleProperties(el, extensionElements, { values: removeZeebeUserTask(extensionElements) });

// then
Expand All @@ -213,7 +213,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct
addFormDefinition(el);

// then
const extensionElements = getElementExtensions(el);
const extensionElements = getExtensionElements(el);

const taskListenersContainer = getTaskListenersContainer(el);
const userTask = getFirstExtensionElement(el, 'zeebe:UserTask');
Expand All @@ -230,7 +230,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct

// helpers

function getElementExtensions(element) {
function getExtensionElements(element) {
return getBusinessObject(element).get('extensionElements');
}

Expand All @@ -248,7 +248,7 @@ function removeZeebeUserTask(extensionElements) {

function addFormDefinition(element) {
getBpmnJS().invoke(function(bpmnFactory, modeling) {
const extensionElements = getElementExtensions(element);
const extensionElements = getExtensionElements(element);
const values = extensionElements.get('values'),
formDefinition = bpmnFactory.create('zeebe:FormDefinition');

Expand Down

0 comments on commit 9ededd5

Please sign in to comment.