@@ -62,15 +62,15 @@ describe('lightning dev app', () => {
6262 'iPhone 15 Pro Max' ,
6363 DeviceType . mobile ,
6464 AppleOSType . iOS ,
65- new Version ( 17 , 5 , 0 )
65+ new Version ( 17 , 5 , 0 ) ,
6666 ) ;
6767 const testAndroidDevice = new AndroidDevice (
6868 'Pixel_5_API_34' ,
6969 'Pixel 5 API 34' ,
7070 DeviceType . mobile ,
7171 AndroidOSType . googleAPIs ,
7272 new Version ( 34 , 0 , 0 ) ,
73- false
73+ false ,
7474 ) ;
7575 const certData : SSLCertificateData = {
7676 derCertificate : Buffer . from ( 'A' , 'utf-8' ) ,
@@ -103,7 +103,7 @@ describe('lightning dev app', () => {
103103 $$ . SANDBOX . stub ( Connection . prototype , 'getUsername' ) . returns ( testUsername ) ;
104104 $$ . SANDBOX . stub ( PreviewUtils , 'getOrCreateAppServerIdentity' ) . resolves ( testIdentityData ) ;
105105 $$ . SANDBOX . stub ( OrgUtils , 'isLocalDevEnabled' ) . resolves ( true ) ;
106- $$ . SANDBOX . stub ( OrgUtils , 'ensureMatchingAPIVersion ' ) . returns ( ) ;
106+ $$ . SANDBOX . stub ( OrgUtils , 'getVersionChannel ' ) . returns ( 'latest' ) ;
107107
108108 MockedLightningPreviewApp = await esmock < typeof LightningDevApp > ( '../../../../src/commands/lightning/dev/app.js' , {
109109 '../../../../src/lwc-dev-server/index.js' : {
@@ -153,7 +153,7 @@ describe('lightning dev app', () => {
153153 try {
154154 $$ . SANDBOX . stub ( OrgUtils , 'getAppDefinitionDurableId' ) . resolves ( testAppDefinition . DurableId ) ;
155155 $$ . SANDBOX . stub ( PreviewUtils , 'generateWebSocketUrlForLocalDevServer' ) . throws (
156- new Error ( 'Cannot determine LDP url.' )
156+ new Error ( 'Cannot determine LDP url.' ) ,
157157 ) ;
158158 await MockedLightningPreviewApp . run ( [ '--name' , 'Sales' , '-o' , testOrgData . username , '-t' , Platform . desktop ] ) ;
159159 } catch ( err ) {
@@ -175,7 +175,7 @@ describe('lightning dev app', () => {
175175
176176 it ( 'prompts user to select lightning app when not provided' , async ( ) => {
177177 const promptStub = $$ . SANDBOX . stub ( PromptUtils , 'promptUserToSelectLightningExperienceApp' ) . resolves (
178- testAppDefinition
178+ testAppDefinition ,
179179 ) ;
180180 await verifyOrgOpen ( `lightning/app/${ testAppDefinition . DurableId } ` , Platform . desktop ) ;
181181 expect ( promptStub . calledOnce ) ;
@@ -245,7 +245,7 @@ describe('lightning dev app', () => {
245245 $$ . SANDBOX . stub ( LwcDevMobileCoreSetup . prototype , 'run' ) . resolves ( ) ;
246246
247247 $$ . SANDBOX . stub ( PreviewUtils , 'getMobileDevice' ) . callsFake ( ( platform ) =>
248- Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice )
248+ Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice ) ,
249249 ) ;
250250
251251 await verifyMobileThrowsWhenDeviceFailsToBoot ( Platform . ios ) ;
@@ -260,7 +260,7 @@ describe('lightning dev app', () => {
260260 $$ . SANDBOX . stub ( LwcDevMobileCoreSetup . prototype , 'run' ) . resolves ( ) ;
261261
262262 $$ . SANDBOX . stub ( PreviewUtils , 'getMobileDevice' ) . callsFake ( ( platform ) =>
263- Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice )
263+ Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice ) ,
264264 ) ;
265265
266266 $$ . SANDBOX . stub ( AppleDevice . prototype , 'boot' ) . resolves ( ) ;
@@ -280,7 +280,7 @@ describe('lightning dev app', () => {
280280 $$ . SANDBOX . stub ( LwcDevMobileCoreSetup . prototype , 'run' ) . resolves ( ) ;
281281
282282 $$ . SANDBOX . stub ( PreviewUtils , 'getMobileDevice' ) . callsFake ( ( platform ) =>
283- Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice )
283+ Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice ) ,
284284 ) ;
285285
286286 $$ . SANDBOX . stub ( PreviewUtils , 'generateSelfSignedCert' ) . resolves ( certData ) ;
@@ -315,7 +315,7 @@ describe('lightning dev app', () => {
315315 $$ . SANDBOX . stub ( LwcDevMobileCoreSetup . prototype , 'run' ) . resolves ( ) ;
316316
317317 $$ . SANDBOX . stub ( PreviewUtils , 'getMobileDevice' ) . callsFake ( ( platform ) =>
318- Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice )
318+ Promise . resolve ( platform === Platform . ios ? testIOSDevice : testAndroidDevice ) ,
319319 ) ;
320320
321321 $$ . SANDBOX . stub ( PreviewUtils , 'generateSelfSignedCert' ) . resolves ( certData ) ;
@@ -416,11 +416,11 @@ describe('lightning dev app', () => {
416416 expectedLdpServerUrl ,
417417 testLdpServerId ,
418418 'Sales' ,
419- testAppDefinition . DurableId
419+ testAppDefinition . DurableId ,
420420 ) ;
421421
422422 const downloadStub = $$ . SANDBOX . stub ( PreviewUtils , 'downloadSalesforceMobileAppBundle' ) . resolves (
423- testBundleArchive
423+ testBundleArchive ,
424424 ) ;
425425 const extractStub = $$ . SANDBOX . stub ( CommonUtils , 'extractZIPArchive' ) . resolves ( ) ;
426426 const installStub =
0 commit comments