bpmn-moddle
Advanced tools
Comparing version 0.13.0 to 0.14.0
{ | ||
"name": "bpmn-moddle", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "A moddle wrapper for BPMN 2.0", | ||
@@ -47,5 +47,5 @@ "scripts": { | ||
"lodash": "^3.0.0", | ||
"moddle": "^0.8.0", | ||
"moddle-xml": "^0.12.0" | ||
"moddle": "^1.0.0", | ||
"moddle-xml": "^1.0.0" | ||
} | ||
} |
@@ -766,2 +766,29 @@ 'use strict'; | ||
it('BPMNEdge (colored)', function(done) { | ||
// given | ||
var bpmnEdge = moddle.create('bpmndi:BPMNEdge', { | ||
fill: '#ff0000', | ||
stroke: '#00ff00' | ||
}); | ||
var expectedXML = | ||
'<bpmndi:BPMNEdge xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" ' + | ||
'xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" ' + | ||
'bioc:stroke="#00ff00" bioc:fill="#ff0000" />'; | ||
// when | ||
write(bpmnEdge, function(err, result) { | ||
if (err) { | ||
done(err); | ||
} | ||
// then | ||
expect(result).to.eql(expectedXML); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
@@ -768,0 +795,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1000013
6922
+ Addedmoddle@1.2.1(transitive)
+ Addedmoddle-xml@1.1.1(transitive)
- Removedmoddle@0.8.0(transitive)
- Removedmoddle-xml@0.12.0(transitive)
Updatedmoddle@^1.0.0
Updatedmoddle-xml@^1.0.0