Skip to content

Commit

Permalink
test: improve formatting + descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and fake-join[bot] committed Jan 10, 2023
1 parent d1b11f5 commit 7ccb4e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/spec/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ describe('Reader', function() {
});


it('collection / xsi:type / from other namespace)', async function() {
it('collection / xsi:type / from other namespace', async function() {

var datatypeModel = createModel([ 'datatype', 'datatype-external' ]);

Expand Down
18 changes: 12 additions & 6 deletions test/spec/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ describe('Writer', function() {
expect(xml).to.eql(
'<root xmlns="http://datatypes">' +
'<bounds y="100" />' +
'</root>');
'</root>'
);
});


Expand All @@ -157,7 +158,8 @@ describe('Writer', function() {
expect(xml).to.eql(
'<a:root xmlns:a="http://datatypes">' +
'<a:bounds y="100" />' +
'</a:root>');
'</a:root>'
);
});


Expand All @@ -183,7 +185,8 @@ describe('Writer', function() {
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' +
'<dt:otherBounds y="200" />' +
'<dt:otherBounds xsi:type="do:Rect" x="100" />' +
'</dt:root>');
'</dt:root>'
);
});


Expand All @@ -209,7 +212,8 @@ describe('Writer', function() {
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' +
'<dt:otherBounds xsi:type="da:tRect" z="200" />' +
'<dt:otherBounds y="100" />' +
'</dt:root>');
'</dt:root>'
);
});


Expand Down Expand Up @@ -237,7 +241,8 @@ describe('Writer', function() {
'<props:someBody xsi:type="props:SimpleBody">' +
'${ foo &lt; bar }' +
'</props:someBody>' +
'</props:withBody>');
'</props:withBody>'
);
});


Expand All @@ -259,7 +264,8 @@ describe('Writer', function() {
'<props:withBody xmlns:props="http://properties" ' +
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n' +
' <props:someBody xsi:type="props:SimpleBody">${ foo &lt; bar }</props:someBody>\n' +
'</props:withBody>\n');
'</props:withBody>\n'
);
});


Expand Down

0 comments on commit 7ccb4e9

Please sign in to comment.