Skip to content

Commit

Permalink
test: fix broken subquery now that it's top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Oct 17, 2024
1 parent 64ed1b0 commit 80752d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/commands/data/tree/dataTree.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('data:tree commands', () => {
});

execCmd(
`data:export:tree --query "SELECT Id, Name, Phone, Website, NumberOfEmployees, Industry FROM Account WHERE Name LIKE 'SampleAccount%'" --query "SELECT Lastname, Title, Email FROM Contacts" --prefix INT --output-dir ${path.join(
`data:export:tree --query "SELECT Id, Name, Phone, Website, NumberOfEmployees, Industry FROM Account WHERE Name LIKE 'SampleAccount%'" --query "SELECT Lastname, Title, Email FROM Contact" --prefix INT --output-dir ${path.join(
'.',
'export_data_1'
)} --plan --json`,
Expand Down
6 changes: 3 additions & 3 deletions test/commands/data/tree/dataTreeJunction.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ describe('data:tree commands', () => {
);

expect(exportResult.shellOutput.stdout).to.include(
`records to ${path.join('.', 'junction', 'AccountContactRelation.json')}`
`records to ${path.join('.', 'junction_files', 'AccountContactRelation.json')}`
);
expect(exportResult.shellOutput.stdout).to.include(`records to ${path.join('junction', 'Account.json')}`);
expect(exportResult.shellOutput.stdout).to.include(`records to ${path.join('junction', 'Contact.json')}`);
expect(exportResult.shellOutput.stdout).to.include(`records to ${path.join('junction_files', 'Account.json')}`);
expect(exportResult.shellOutput.stdout).to.include(`records to ${path.join('junction_files', 'Contact.json')}`);

execCmd<ImportResult[]>(
`data:import:tree --target-org importOrg --plan ${path.join('.', 'junction_files', 'plan.json')}`,
Expand Down

0 comments on commit 80752d4

Please sign in to comment.