Skip to content

Commit

Permalink
deps: update to moddle@7
Browse files Browse the repository at this point in the history
Introduces strict namespace handling.
  • Loading branch information
nikku committed Mar 11, 2024
1 parent fd430f1 commit 4fdc152
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 29 deletions.
40 changes: 18 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
},
"dependencies": {
"min-dash": "^4.2.1",
"moddle": "^7.0.0",
"moddle-xml": "^11.0.0"
"moddle": "^7.0.0-exp.1",
"moddle-xml": "^11.0.0-exp.0"
},
"files": [
"dist",
Expand Down
4 changes: 3 additions & 1 deletion test/integration/camunda/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ describe('bpmn-moddle - integration', function() {
it('ServiceTaskLike', async function() {

// given
var serviceTask = moddle.create('bpmn:ServiceTask', { javaDelegate: 'FOO' });
var serviceTask = moddle.create('bpmn:ServiceTask', {
'camunda:javaDelegate': 'FOO'
});

// assume
expect(serviceTask.$instanceOf('camunda:ServiceTaskLike')).to.be.true;
Expand Down
8 changes: 4 additions & 4 deletions test/spec/xml/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ describe('bpmn-moddle - write', function() {

// given
var bpmnShape = moddle.create('bpmndi:BPMNShape', {
fill: '#ff0000',
stroke: '#00ff00'
'bioc:fill': '#ff0000',
'bioc:stroke': '#00ff00'
});

var expectedXML =
Expand All @@ -713,8 +713,8 @@ describe('bpmn-moddle - write', function() {

// given
var bpmnEdge = moddle.create('bpmndi:BPMNEdge', {
fill: '#ff0000',
stroke: '#00ff00'
'bioc:fill': '#ff0000',
'bioc:stroke': '#00ff00'
});

var expectedXML =
Expand Down

0 comments on commit 4fdc152

Please sign in to comment.