internal: incomplete vault systems behind feature flag (#2340)

This commit is contained in:
Mo
2023-06-30 09:01:56 -05:00
committed by GitHub
parent d16e401bb9
commit b032eb9c9b
638 changed files with 20321 additions and 4813 deletions

View File

@@ -6,6 +6,7 @@ import {
InternalEventBusInterface,
ChallengeReason,
EncryptionService,
MutatorClientInterface,
} from '@standardnotes/services'
import { UuidGenerator } from '@standardnotes/utils'
import {
@@ -22,6 +23,7 @@ const setupRandomUuid = () => {
}
describe('protectionService', () => {
let mutator: MutatorClientInterface
let protocolService: EncryptionService
let challengeService: ChallengeService
let storageService: DiskStorageService
@@ -29,7 +31,7 @@ describe('protectionService', () => {
let protectionService: SNProtectionService
const createService = () => {
return new SNProtectionService(protocolService, challengeService, storageService, internalEventBus)
return new SNProtectionService(protocolService, mutator, challengeService, storageService, internalEventBus)
}
const createFile = (name: string, isProtected?: boolean) => {
@@ -60,6 +62,8 @@ describe('protectionService', () => {
protocolService = {} as jest.Mocked<EncryptionService>
protocolService.hasAccount = jest.fn().mockReturnValue(true)
protocolService.hasPasscode = jest.fn().mockReturnValue(false)
mutator = {} as jest.Mocked<MutatorClientInterface>
})
describe('files', () => {