Skip to content

Commit

Permalink
test: squash
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul99ahad committed Dec 16, 2024
1 parent 080a57a commit 8804ba2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/fixtures/zeebe/mappings/scope.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<zeebe:script expression="={}" resultVariable="foo" />
<zeebe:ioMapping>
<zeebe:input source="=123" target="foo" />
<zeebe:output target="output" />
</zeebe:ioMapping>
</bpmn:extensionElements>
</bpmn:scriptTask>
Expand Down
5 changes: 4 additions & 1 deletion test/spec/zeebe/Mappings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { is } from 'bpmn-js/lib/util/ModelUtil';
import { bootstrapModeler, inject } from 'test/TestHelper';

import { ZeebeVariableResolverModule } from 'lib/';
import { getInputOutput } from '../../../lib/base/util/ExtensionElementsUtil';

import chainedMappingsXML from 'test/fixtures/zeebe/mappings/chained-mappings.bpmn';
import primitivesXML from 'test/fixtures/zeebe/mappings/primitives.bpmn';
Expand Down Expand Up @@ -320,9 +321,11 @@ describe('ZeebeVariableResolver - Variable Mappings', function() {

// given
const root = elementRegistry.get('Activity_1');
const bo = root.businessObject;
const output = getInputOutput(bo).outputParameters[0];

// when
const variables = await variableResolver.getVariablesForElement(root.businessObject);
const variables = await variableResolver.getVariablesForElement(root.businessObject, output);

// then
expect(variables).to.variableEqual([
Expand Down

0 comments on commit 8804ba2

Please sign in to comment.