diff --git a/test/zeebe/fixtures/script-task-same-output-and-result-variable.bpmn b/test/zeebe/fixtures/script-task-result-variable-output-same-name.bpmn similarity index 84% rename from test/zeebe/fixtures/script-task-same-output-and-result-variable.bpmn rename to test/zeebe/fixtures/script-task-result-variable-output-same-name.bpmn index 9cf1e69..77fcdfb 100644 --- a/test/zeebe/fixtures/script-task-same-output-and-result-variable.bpmn +++ b/test/zeebe/fixtures/script-task-result-variable-output-same-name.bpmn @@ -3,16 +3,16 @@ - + - + - + diff --git a/test/zeebe/fixtures/script-task-output.bpmn b/test/zeebe/fixtures/script-task-result-variable-output.bpmn similarity index 85% rename from test/zeebe/fixtures/script-task-output.bpmn rename to test/zeebe/fixtures/script-task-result-variable-output.bpmn index c81e1e4..642d354 100644 --- a/test/zeebe/fixtures/script-task-output.bpmn +++ b/test/zeebe/fixtures/script-task-result-variable-output.bpmn @@ -3,16 +3,16 @@ - + - + - + diff --git a/test/zeebe/spec/ProcessVariablesSpec.js b/test/zeebe/spec/ProcessVariablesSpec.js index dfdf77e..b9b65a8 100644 --- a/test/zeebe/spec/ProcessVariablesSpec.js +++ b/test/zeebe/spec/ProcessVariablesSpec.js @@ -215,10 +215,10 @@ describe('zeebe/process variables module', function() { }); - it('should extract variables with re define resultVariable scope if output mapping exists - script task', async function() { + it('should extract variables - result variable, output exists - script task', async function() { // given - const xml = read('test/zeebe/fixtures/script-task-output.bpmn'); + const xml = read('test/zeebe/fixtures/script-task-result-variable-output.bpmn'); const definitions = await parse(xml); @@ -229,16 +229,16 @@ describe('zeebe/process variables module', function() { // then expect(convertToTestable(variables)).to.eql([ - { name: 'output', origin: [ 'Task_1' ], scope: 'Process_1' }, - { name: 'foo', origin: [ 'Task_1' ], scope: 'Task_1' }, + { name: 'bar', origin: [ 'Task_1' ], scope: 'Process_1' }, + { name: 'foo', origin: [ 'Task_1' ], scope: 'Task_1' } ]); }); - it('should extract only output variable if same name result variable exists - simple process with script', async function() { + it('should not extract variables - result variable, output exists with same name - script task', async function() { // given - const xml = read('test/zeebe/fixtures/script-task-same-output-and-result-variable.bpmn'); + const xml = read('test/zeebe/fixtures/script-task-result-variable-output-same-name.bpmn'); const definitions = await parse(xml);