Skip to content

Commit 8be1d03

Browse files
committed
test: ut for undefined skipConnection param
1 parent 817cd5b commit 8be1d03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/shared/orgListUtil.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ describe('orgListUtil tests', () => {
153153
expect(determineConnectedStatusForNonScratchOrg.called).to.be.false;
154154
});
155155

156+
it('skipconnectionstatus with default', async () => {
157+
const orgs = await OrgListUtil.readLocallyValidatedMetaConfigsGroupedByOrgType(fileNames);
158+
expect(orgs.nonScratchOrgs.every((org) => org.connectedStatus !== undefined)).to.be.true;
159+
expect(orgs.other.every((org) => org.connectedStatus !== undefined)).to.be.true;
160+
expect(orgs.sandboxes.every((org) => org.connectedStatus !== undefined)).to.be.true;
161+
162+
expect(determineConnectedStatusForNonScratchOrg.called).to.be.true;
163+
});
164+
156165
it('should omit sensitive information and catergorise active and non-active scracth orgs', async () => {
157166
const orgs = await OrgListUtil.readLocallyValidatedMetaConfigsGroupedByOrgType(fileNames, false);
158167

0 commit comments

Comments
 (0)