Skip to content

Commit bf7c9c1

Browse files
committed
chore: fix unit tests
1 parent 226e887 commit bf7c9c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/services/livesync/playground/preview-app-livesync-service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export class PreviewAppLiveSyncService extends EventEmitter implements IPreviewA
3535
}
3636

3737
const deviceUniqueId = (<any>device).uniqueId;
38-
3938
if (deviceUniqueId) {
4039
this.$analyticsService.trackEventActionInGoogleAnalytics({
4140
action: TrackActionNames.PreviewAppData,

test/services/playground/preview-app-livesync-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ function createTestInjector(options?: {
158158
getConnectedDevices: () => [deviceMockData]
159159
});
160160
injector.register("previewAppFilesService", PreviewAppFilesService);
161+
injector.register("analyticsService", {
162+
trackEventActionInGoogleAnalytics: () => ({})
163+
});
161164

162165
return injector;
163166
}

0 commit comments

Comments
 (0)