File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,16 @@ describe('util/sfdcUrl', () => {
180
180
expect ( url . isLocalUrl ( ) ) . to . equal ( true ) ;
181
181
} ) ;
182
182
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
+ } ) ;
186
193
} ) ;
187
194
} ) ;
188
195
You can’t perform that action at this time.
0 commit comments