Skip to content

Commit

Permalink
fix: xmlns set during source conversion (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Powell authored and lcampos committed Dec 3, 2020
1 parent deeaccb commit 790c674
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/convert/transformers/decomposedMetadataTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class DecomposedMetadataTransformer extends BaseMetadataTransformer {
): Promise<WriterFormat> {
const writeInfos: WriteInfo[] = [];
const { type, fullName: parentFullName } = component;
const parentXmlObject: XmlJson = { [type.name]: {} };
const parentXmlObject: any = { [type.name]: { [XML_NS_KEY]: XML_NS_URL } };

let createParentXml = false;
const rootPackagePath = component.getPackageRelativePath(parentFullName, 'source');
Expand Down
1 change: 0 additions & 1 deletion test/convert/transformers/decomposedMetadataTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ describe('DecomposedMetadataTransformer', () => {
const root = join('main', 'default', type.directoryName, fullName);
env.stub(component, 'parseXml').resolves({
ReginaKing: {
[XML_NS_KEY]: XML_NS_URL,
fullName,
foo: 'bar',
ys: { fullName: 'child', test: 'testVal' },
Expand Down

0 comments on commit 790c674

Please sign in to comment.