Skip to content

Commit b827245

Browse files
committed
test: various workbench urls are internal
1 parent 1afcc89 commit b827245

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/unit/util/sfdcUrl.test.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,16 @@ describe('util/sfdcUrl', () => {
180180
expect(url.isLocalUrl()).to.equal(true);
181181
});
182182
it('workspaces with port is internal but not local', () => {
183-
const url = new SfdcUrl('https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wc.crm.dev:6101/');
184-
expect(url.isInternalUrl()).to.equal(true);
185-
expect(url.isLocalUrl()).to.equal(false);
183+
const urls = [
184+
'https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wc.crm.dev:6101/',
185+
'https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wb.crm.dev:6101/',
186+
'https://dev.salesforce-com.shane-mclaughlin-0lrfx7zp3l121.wa.crm.dev:6101/',
187+
].map((u) => new SfdcUrl(u));
188+
189+
urls.map((url) => {
190+
expect(url.isInternalUrl()).to.equal(true);
191+
expect(url.isLocalUrl()).to.equal(false);
192+
});
186193
});
187194
});
188195

0 commit comments

Comments
 (0)