bpmn-moddle
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -37,3 +37,13 @@ 'use strict'; | ||
}, | ||
src: ['test/**/*.js'] | ||
src: [ 'test/**/*.js' ] | ||
}, | ||
watch: { | ||
options: { | ||
noFail: true, | ||
reporter: 'spec', | ||
require: [ | ||
'./test/expect.js' | ||
] | ||
}, | ||
src: [ 'test/**/*.js' ] | ||
} | ||
@@ -52,4 +62,7 @@ }, | ||
test: { | ||
files: [ '<%= config.sources %>/**/*.js', '<%= config.tests %>/spec/**/*.js' ], | ||
tasks: [ 'test' ] | ||
files: [ | ||
'<%= config.sources %>/**/*.js', | ||
'<%= config.tests %>/spec/**/*.js' | ||
], | ||
tasks: [ 'mochaTest:watch' ] | ||
} | ||
@@ -63,5 +76,5 @@ } | ||
grunt.registerTask('auto-test', [ 'test', 'watch:test' ]); | ||
grunt.registerTask('auto-test', [ 'mochaTest:watch', 'watch:test' ]); | ||
grunt.registerTask('default', [ 'jshint', 'test' ]); | ||
}; |
{ | ||
"name": "bpmn-moddle", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "A moddle wrapper for BPMN 2.0", | ||
@@ -38,6 +38,7 @@ "scripts": { | ||
"grunt-contrib-watch": "^0.5.0", | ||
"grunt-mocha-test": "^0.11.0", | ||
"grunt-mocha-test": "^0.13.2", | ||
"grunt-release": "^0.7.0", | ||
"jsondiffpatch": "^0.1.4", | ||
"load-grunt-tasks": "^0.3.0", | ||
"mocha": "^3.1.2", | ||
"xsd-schema-validator": "^0.3.0" | ||
@@ -44,0 +45,0 @@ }, |
@@ -461,3 +461,5 @@ { | ||
"name": "definition", | ||
"type": "ExtensionDefinition" | ||
"type": "ExtensionDefinition", | ||
"isAttr": true, | ||
"isReference": true | ||
} | ||
@@ -464,0 +466,0 @@ ] |
@@ -63,2 +63,10 @@ 'use strict'; | ||
// fix cryptic bpmn:Extension reference | ||
builder.alter('Extension#definition', { | ||
isAttr: true, | ||
isReference: true | ||
}); | ||
// fix documentation being first element | ||
@@ -65,0 +73,0 @@ |
@@ -870,3 +870,3 @@ 'use strict'; | ||
expect(err).not.to.eql(null); | ||
expect(err).to.exist; | ||
@@ -883,3 +883,3 @@ done(); | ||
expect(err).not.to.eql(null); | ||
expect(err).to.exist; | ||
@@ -892,2 +892,21 @@ done(); | ||
it('when importing bpmn:Extension (missing definition)', function(done) { | ||
// when | ||
fromFile('test/fixtures/bpmn/error/extension-definition-missing.bpmn', function(err, result, context) { | ||
var warnings = context.warnings; | ||
// then | ||
expect(warnings).to.have.length(1); | ||
expect(warnings[0].message).to.eql('unresolved reference <ino:tInnovator>'); | ||
expect(err).not.to.exist; | ||
done(); | ||
}); | ||
}); | ||
it('when importing invalid bpmn', function(done) { | ||
@@ -894,0 +913,0 @@ |
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
991937
104
6797
12