File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ class PreviewSdkServiceMock extends EventEmitter implements IPreviewSdkService {
7575 return "my_cool_qr_code_url" ;
7676 }
7777
78- public connectedDevices : Device [ ] = [ deviceMockData ] ;
7978 public initialize ( getInitialFiles : ( device : Device ) => Promise < FilesPayload > ) {
8079 this . getInitialFiles = async ( device ) => {
8180 const filesPayload = await getInitialFiles ( device ) ;
@@ -158,6 +157,9 @@ function createTestInjector(options?: {
158157 isHookCalledWithHMR = args . hookArgs . config . appFilesUpdaterOptions . useHotModuleReload ;
159158 }
160159 } ) ;
160+ injector . register ( "previewDevicesService" , {
161+ connectedDevices : [ deviceMockData ]
162+ } ) ;
161163
162164 return injector ;
163165}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const getPreviewSdkService = (): IPreviewSdkService => {
88 testInjector . register ( "logger" , LoggerStub ) ;
99 testInjector . register ( "config" , { } ) ;
1010 testInjector . register ( "previewSdkService" , PreviewSdkService ) ;
11-
11+ testInjector . register ( "previewDevicesService" , { } ) ;
1212 testInjector . register ( "httpClient" , {
1313 httpRequest : async ( options : any , proxySettings ?: IProxySettings ) : Promise < Server . IResponse > => undefined
1414 } ) ;
You can’t perform that action at this time.
0 commit comments