Skip to content

Commit a451aa5

Browse files
committed
fix: update the test
1 parent 6fbf6ba commit a451aa5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/commands/retrieve/start.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ describe('project retrieve start', () => {
152152
ensureCreateComponentSetArgs({ sourcepath });
153153
ensureRetrieveArgs({ format: 'source' });
154154
});
155-
it('should pass along retrievetargetdir', async () => {
155+
it.only('should pass along retrievetargetdir', async () => {
156156
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
157157
// @ts-ignore
158158
const renameStub = $$.SANDBOX.stub(RetrieveMetadata.prototype, 'moveResultsForRetrieveTargetDir').resolves();
159159

160-
const sourcepath = ['somepath'];
160+
const outputDir = resolve(expectedDirectoryPath, '..', 'retrieveOutput');
161161
const metadata = ['ApexClass:MyClass'];
162-
const result = await RetrieveMetadata.run(['--output-dir', sourcepath[0], '--metadata', metadata[0], '--json']);
162+
const result = await RetrieveMetadata.run(['--output-dir', outputDir, '--metadata', metadata[0], '--json']);
163163
expect(result).to.deep.equal(expectedResults);
164164
ensureCreateComponentSetArgs({
165165
sourcepath: undefined,
@@ -168,7 +168,7 @@ describe('project retrieve start', () => {
168168
metadataEntries: ['ApexClass:MyClass'],
169169
},
170170
});
171-
ensureRetrieveArgs({ output: resolve(sourcepath[0]), format: 'source' });
171+
ensureRetrieveArgs({ output: resolve(outputDir), format: 'source' });
172172
expect(renameStub.calledOnce).to.be.true;
173173
});
174174

0 commit comments

Comments
 (0)