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 {
75
75
return "my_cool_qr_code_url" ;
76
76
}
77
77
78
- public connectedDevices : Device [ ] = [ deviceMockData ] ;
79
78
public initialize ( getInitialFiles : ( device : Device ) => Promise < FilesPayload > ) {
80
79
this . getInitialFiles = async ( device ) => {
81
80
const filesPayload = await getInitialFiles ( device ) ;
@@ -158,6 +157,9 @@ function createTestInjector(options?: {
158
157
isHookCalledWithHMR = args . hookArgs . config . appFilesUpdaterOptions . useHotModuleReload ;
159
158
}
160
159
} ) ;
160
+ injector . register ( "previewDevicesService" , {
161
+ connectedDevices : [ deviceMockData ]
162
+ } ) ;
161
163
162
164
return injector ;
163
165
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const getPreviewSdkService = (): IPreviewSdkService => {
8
8
testInjector . register ( "logger" , LoggerStub ) ;
9
9
testInjector . register ( "config" , { } ) ;
10
10
testInjector . register ( "previewSdkService" , PreviewSdkService ) ;
11
-
11
+ testInjector . register ( "previewDevicesService" , { } ) ;
12
12
testInjector . register ( "httpClient" , {
13
13
httpRequest : async ( options : any , proxySettings ?: IProxySettings ) : Promise < Server . IResponse > => undefined
14
14
} ) ;
You can’t perform that action at this time.
0 commit comments