diff --git a/src/convert/convertContext.ts b/src/convert/convertContext.ts index e588f960cb..b78d9858e7 100644 --- a/src/convert/convertContext.ts +++ b/src/convert/convertContext.ts @@ -4,7 +4,7 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ -import { dirname, join, resolve } from 'path'; +import { join, resolve } from 'path'; import { getString, JsonArray, JsonMap } from '@salesforce/ts-types'; import { META_XML_SUFFIX, XML_NS_KEY, XML_NS_URL } from '../common'; import { ComponentSet } from '../collections'; @@ -273,7 +273,7 @@ class NonDecompositionFinalizer extends ConvertTransactionFinalizer { const context = new ConvertContext(); const type = component.type; - // change the word first to 'updated' + // change the word 'third' to 'updated' const updatedChild3Xml = { ...nonDecomposed.CHILD_3_XML, value: nonDecomposed.CHILD_3_XML.value.replace('third', 'updated'), @@ -417,7 +417,7 @@ describe('Convert Transaction Constructs', () => { state.exampleComponent = component; }); - const result = await context.nonDecomposition.finalize(nonDecomposed.DEFAULT_DIR, TREE); + const result = await context.nonDecomposition.finalize(dirname(nonDecomposed.DEFAULT_DIR), TREE); expect(result).to.deep.equal([{ component, writeInfos }]); }); });