Skip to content

Commit

Permalink
test: add test verifying $parent
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Sep 26, 2023
1 parent 117f64d commit c6a74f5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,13 @@ describe('cloud-element-templates/cmd - ChangeElementTemplateHandler', function(
expect(ioMapping.get('zeebe:inputParameters')).to.have.length(2);
expect(ioMapping.get('zeebe:outputParameters')).to.have.length(2);

expect(ioMapping.$parent)
.to.equal(getBusinessObject(task).get('extensionElements'));

ioMapping.get('zeebe:inputParameters').forEach((inputParameter) => {
expect(inputParameter.$parent).to.equal(ioMapping);
});

expect(ioMapping.get('zeebe:inputParameters')).to.jsonEqual([
{
$type: 'zeebe:Input',
Expand Down

0 comments on commit c6a74f5

Please sign in to comment.