Skip to content

Commit

Permalink
test: various workbench urls are internal
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 12, 2024
1 parent 1afcc89 commit b827245
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/unit/util/sfdcUrl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,16 @@ describe('util/sfdcUrl', () => {
expect(url.isLocalUrl()).to.equal(true);
});
it('workspaces with port is internal but not local', () => {
const url = new SfdcUrl('https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wc.crm.dev:6101/');
expect(url.isInternalUrl()).to.equal(true);
expect(url.isLocalUrl()).to.equal(false);
const urls = [
'https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wc.crm.dev:6101/',
'https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wb.crm.dev:6101/',
'https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wa.crm.dev:6101/',
].map((u) => new SfdcUrl(u));

urls.map((url) => {
expect(url.isInternalUrl()).to.equal(true);
expect(url.isLocalUrl()).to.equal(false);
});
});
});

Expand Down

0 comments on commit b827245

Please sign in to comment.