Skip to content

Commit

Permalink
test: additional encoded strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Sep 6, 2023
1 parent 4437c69 commit d51ff43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/convert/streams.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,18 +549,18 @@ describe('Streams', () => {
TestType: {
[XML_NS_KEY]: XML_NS_URL,
foo: '3 results, and 1 other',
many: [{ test: 'first' }, { test: 'second' }],
many: [{ test: 'first&#1601st' }, { test: 'second&#1602nd' }],
},
};
const jsToXml = new streams.JsToXml(xmlObj);
let expectedBody = XML_DECL;
expectedBody += `<TestType xmlns="${XML_NS_URL}">\n`;
expectedBody += ' <foo>3 results,&#160;and 1 other</foo>\n';
expectedBody += ' <many>\n';
expectedBody += ' <test>first</test>\n';
expectedBody += ' <test>first&#1601st</test>\n';
expectedBody += ' </many>\n';
expectedBody += ' <many>\n';
expectedBody += ' <test>second</test>\n';
expectedBody += ' <test>second&#1602nd</test>\n';
expectedBody += ' </many>\n';
expectedBody += '</TestType>\n';

Expand Down

1 comment on commit d51ff43

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: d51ff43 Previous: 09f5af7 Ratio
eda-componentSetCreate-linux 225 ms 2388 ms 0.0942211055276382
eda-sourceToMdapi-linux 6789 ms 9449 ms 0.72
eda-sourceToZip-linux 4877 ms 8990 ms 0.54
lotsOfClasses-componentSetCreate-linux 611 ms 19053 ms 0.03206844066551199
lotsOfClasses-sourceToMdapi-linux 8424 ms 27410 ms 0.31
lotsOfClasses-sourceToZip-linux 6963 ms 26101 ms 0.27
lotsOfClasses-mdapiToSource-linux 4144 ms 22275 ms 0.19
lotsOfClassesOneDir-componentSetCreate-linux 778 ms 70340 ms 0.01106056297981234
lotsOfClassesOneDir-sourceToMdapi-linux 11992 ms 78616 ms 0.15
lotsOfClassesOneDir-sourceToZip-linux 10579 ms 78794 ms 0.13
lotsOfClassesOneDir-mdapiToSource-linux 7015 ms 73586 ms 0.09533063354442421

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.