diff --git a/test/unit/util/sfdcUrl.test.ts b/test/unit/util/sfdcUrl.test.ts index 0abe9dd54..640e5611e 100644 --- a/test/unit/util/sfdcUrl.test.ts +++ b/test/unit/util/sfdcUrl.test.ts @@ -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); + }); }); });