Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bpmn-moddle

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-moddle - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

test/fixtures/bpmn/catch-event-dataOutputAssociations.part.bpmn

2

package.json
{
"name": "bpmn-moddle",
"version": "0.9.2",
"version": "0.9.3",
"description": "A moddle wrapper for BPMN 2.0",

@@ -5,0 +5,0 @@ "scripts": {

@@ -600,3 +600,3 @@ {

{
"name": "dataInputAssociation",
"name": "dataInputAssociations",
"type": "DataInputAssociation",

@@ -641,3 +641,3 @@ "isMany": true

{
"name": "dataOutputAssociation",
"name": "dataOutputAssociations",
"type": "DataOutputAssociation",

@@ -644,0 +644,0 @@ "isMany": true

@@ -86,2 +86,13 @@ 'use strict';

// fix event dataInput/dataOutput associations
builder.alter('CatchEvent#dataOutputAssociation', function(desc) {
desc.name = 'dataOutputAssociations';
});
builder.alter('ThrowEvent#dataInputAssociation', function(desc) {
desc.name = 'dataInputAssociations';
});
// fix PotentialOwner#resourceRef

@@ -88,0 +99,0 @@

@@ -169,2 +169,50 @@ 'use strict';

it('ThrowEvent#dataInputAssociations', function(done) {
// given
// when
fromFile('test/fixtures/bpmn/throw-event-dataInputAssociations.part.bpmn', 'bpmn:EndEvent', function(err, result) {
var expected = {
$type: 'bpmn:EndEvent',
id: 'EndEvent_1',
dataInputAssociations: [
{ $type: 'bpmn:DataInputAssociation', id: 'DataInputAssociation_1' }
]
};
// then
expect(result).to.jsonEqual(expected);
done(err);
});
});
it('CatchEvent#dataOutputAssociations', function(done) {
// given
// when
fromFile('test/fixtures/bpmn/catch-event-dataOutputAssociations.part.bpmn', 'bpmn:StartEvent', function(err, result) {
var expected = {
$type: 'bpmn:StartEvent',
id: 'StartEvent_1',
dataOutputAssociations: [
{ $type: 'bpmn:DataOutputAssociation', id: 'DataOutputAssociation_1' }
]
};
// then
expect(result).to.jsonEqual(expected);
done(err);
});
});
it('Escalation + Error', function(done) {

@@ -171,0 +219,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc