test(XML Node): Unit tests (no-changelog)

This commit is contained in:
Michael Kret
2023-02-09 12:23:25 +02:00
committed by GitHub
parent 52cb185637
commit b5948cbe13
3 changed files with 154 additions and 2 deletions

View File

@@ -244,8 +244,7 @@ export class Xml implements INodeType {
);
}
// @ts-ignore
const json = await parser.parseStringPromise(item.json[dataPropertyName]);
const json = await parser.parseStringPromise(item.json[dataPropertyName] as string);
returnData.push({ json });
} else if (mode === 'jsonToxml') {
const builder = new Builder(options);