refactor: key rotation (#2383)
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
SyncOpStatus,
|
||||
SyncServiceInterface,
|
||||
User,
|
||||
UserClientInterface,
|
||||
UserServiceInterface,
|
||||
UserRequestType,
|
||||
} from '@standardnotes/snjs'
|
||||
|
||||
@@ -41,7 +41,7 @@ describe('ApplicationEventObserver', () => {
|
||||
let sessionManager: SessionsClientInterface
|
||||
let subscriptionManager: SubscriptionManagerInterface
|
||||
let toastService: ToastServiceInterface
|
||||
let userService: UserClientInterface
|
||||
let userService: UserServiceInterface
|
||||
|
||||
const createObserver = () =>
|
||||
new ApplicationEventObserver(
|
||||
@@ -94,7 +94,7 @@ describe('ApplicationEventObserver', () => {
|
||||
toastService.showToast = jest.fn().mockReturnValue('1')
|
||||
toastService.hideToast = jest.fn()
|
||||
|
||||
userService = {} as jest.Mocked<UserClientInterface>
|
||||
userService = {} as jest.Mocked<UserServiceInterface>
|
||||
userService.submitUserRequest = jest.fn().mockReturnValue(true)
|
||||
})
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
SessionsClientInterface,
|
||||
SubscriptionManagerInterface,
|
||||
SyncServiceInterface,
|
||||
UserClientInterface,
|
||||
UserServiceInterface,
|
||||
} from '@standardnotes/snjs'
|
||||
import { ToastType } from '@standardnotes/toast'
|
||||
|
||||
@@ -37,7 +37,7 @@ export class ApplicationEventObserver implements EventObserverInterface {
|
||||
private sessionManager: SessionsClientInterface,
|
||||
private subscriptionManager: SubscriptionManagerInterface,
|
||||
private toastService: ToastServiceInterface,
|
||||
private userService: UserClientInterface,
|
||||
private userService: UserServiceInterface,
|
||||
) {}
|
||||
|
||||
async handle(event: ApplicationEvent): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user