Skip to content

Commit

Permalink
test: improve sub process creation coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Mar 11, 2024
1 parent 3e40e9e commit 2615f84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/spec/bpmn-moddle.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ describe('bpmn-moddle', function() {


it('should create SubProcess', function() {
var subProcess = moddle.create('bpmn:SubProcess');
var task = moddle.create('bpmn:Task');

var subProcess = moddle.create('bpmn:SubProcess', {
flowElements: [ task ]
});

expect(subProcess.$type).to.eql('bpmn:SubProcess');
expect(subProcess.$instanceOf('bpmn:InteractionNode')).to.be.true;
expect(subProcess.flowElements).to.eql([ task ]);
});


Expand Down

0 comments on commit 2615f84

Please sign in to comment.