Skip to content

Commit

Permalink
test: make example work (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Dec 12, 2024
1 parent 8706553 commit 7f81766
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/spec/Example.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,15 @@ const ChangeEnginesModule = {

eventBus.on([
'import.done',
'elements.changed'
], function() {
const executionPlatformVersion = bpmnjs.getDefinitions().get('executionPlatformVersion');

elementTemplates.setEngines({
camunda: executionPlatformVersion
});
if (elementTemplates.getEngines().camunda !== executionPlatformVersion) {
elementTemplates.setEngines({
camunda: executionPlatformVersion
});
}
});
} ]
};
Expand Down

0 comments on commit 7f81766

Please sign in to comment.