Skip to content

Commit

Permalink
test: improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Mar 11, 2024
1 parent 2615f84 commit a42cd75
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/spec/xml/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,10 @@ describe('bpmn-moddle - write', function() {
it('BPMNDiagram', async function() {

// given
var diagram = moddle.create('bpmndi:BPMNDiagram', { name: 'FOO', resolution: 96.5 });
var diagram = moddle.create('bpmndi:BPMNDiagram', {
name: 'FOO',
resolution: 96.5
});

var expectedXML =
'<bpmndi:BPMNDiagram xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" ' +
Expand All @@ -662,8 +665,14 @@ describe('bpmn-moddle - write', function() {
it('BPMNShape', async function() {

// given
var bounds = moddle.create('dc:Bounds', { x: 100.0, y: 200.0, width: 50.0, height: 50.0 });
var bpmnShape = moddle.create('bpmndi:BPMNShape', { bounds: bounds });
var bpmnShape = moddle.create('bpmndi:BPMNShape', {
bounds: moddle.create('dc:Bounds', {
x: 100.0,
y: 200.0,
width: 50.0,
height: 50.0
})
});

var expectedXML =
'<bpmndi:BPMNShape xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" ' +
Expand Down

0 comments on commit a42cd75

Please sign in to comment.