refactor: native feature management (#2350)

This commit is contained in:
Mo
2023-07-12 12:56:08 -05:00
committed by GitHub
parent 49f7581cd8
commit 078ef3772c
223 changed files with 3996 additions and 3438 deletions

View File

@@ -13,7 +13,7 @@ import { ToastType } from '@standardnotes/toast'
import {
ApplicationEvent,
SessionsClientInterface,
SubscriptionClientInterface,
SubscriptionManagerInterface,
SyncClientInterface,
SyncOpStatus,
User,
@@ -39,7 +39,7 @@ describe('ApplicationEventObserver', () => {
let syncStatusController: SyncStatusController
let syncClient: SyncClientInterface
let sessionManager: SessionsClientInterface
let subscriptionManager: SubscriptionClientInterface
let subscriptionManager: SubscriptionManagerInterface
let toastService: ToastServiceInterface
let userService: UserClientInterface
@@ -87,7 +87,7 @@ describe('ApplicationEventObserver', () => {
sessionManager = {} as jest.Mocked<SessionsClientInterface>
sessionManager.getUser = jest.fn().mockReturnValue({} as jest.Mocked<User>)
subscriptionManager = {} as jest.Mocked<SubscriptionClientInterface>
subscriptionManager = {} as jest.Mocked<SubscriptionManagerInterface>
subscriptionManager.acceptInvitation = jest.fn()
toastService = {} as jest.Mocked<ToastServiceInterface>

View File

@@ -8,7 +8,7 @@ import {
import {
ApplicationEvent,
SessionsClientInterface,
SubscriptionClientInterface,
SubscriptionManagerInterface,
SyncClientInterface,
UserClientInterface,
} from '@standardnotes/snjs'
@@ -35,7 +35,7 @@ export class ApplicationEventObserver implements EventObserverInterface {
private syncStatusController: SyncStatusController,
private syncClient: SyncClientInterface,
private sessionManager: SessionsClientInterface,
private subscriptionManager: SubscriptionClientInterface,
private subscriptionManager: SubscriptionManagerInterface,
private toastService: ToastServiceInterface,
private userService: UserClientInterface,
) {}