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 Dec 21, 2022
1 parent cdb24de commit 8020b01
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"eslint": "^8.24.0",
"eslint-plugin-bpmn-io": "^0.16.0",
"mocha": "^10.0.0",
"moddle": "^6.2.0",
"moddle": "^7.0.0-exp.1",
"npm-run-all": "^4.1.5",
"rollup": "^2.79.1"
},
Expand Down
4 changes: 2 additions & 2 deletions test/spec/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2120,7 +2120,7 @@ describe('Reader', function() {

expect(rootElement).to.jsonEqual({
$type: 'b:Root',
generic: {
'c:generic': {
$type: 'c:CustomGeneric',
count: 10
}
Expand All @@ -2147,7 +2147,7 @@ describe('Reader', function() {

expect(rootElement).to.jsonEqual({
$type: 'b:Root',
customAttr: 666
'c:customAttr': 666
});

});
Expand Down
6 changes: 3 additions & 3 deletions test/spec/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ describe('Writer', function() {
var writer = createWriter(extendedModel);

var root = extendedModel.create('b:SubRoot', {
customAttr: 1,
'c:customAttr': 1,
subAttr: 'FOO',
ownAttr: 'OWN'
});
Expand Down Expand Up @@ -1375,7 +1375,7 @@ describe('Writer', function() {
var customGeneric = extensionModel.create('c:CustomGeneric', { count: 10 });

var root = extensionModel.create('b:Root', {
generic: customGeneric
'c:generic': customGeneric
});

// when
Expand All @@ -1396,7 +1396,7 @@ describe('Writer', function() {
// given
var writer = createWriter(extensionModel);

var root = extensionModel.create('b:Root', { customAttr: 666 });
var root = extensionModel.create('b:Root', { 'c:customAttr': 666 });

// when
var xml = writer.toXML(root);
Expand Down

0 comments on commit 8020b01

Please sign in to comment.