1 import type { ADDRESS_TYPE } from '@proton/shared/lib/constants';
2 import type { Address, AddressKey } from '@proton/shared/lib/interfaces';
4 const activeKey: AddressKey = {
8 Fingerprint: 'fingerprint',
10 PublicKey: 'PublicKey',
12 PrivateKey: 'PrivateKey',
13 Signature: 'signature',
15 RecoverySecretSignature: null,
17 AddressForwardingID: 'AddressForwardingID',
20 const disabledKey: AddressKey = {
25 export const generateMockAddress = (n: number, keyActive: boolean, type?: ADDRESS_TYPE): Address => {
27 DisplayName: `Testing ${n}`,
28 DomainID: 'proton.ch',
29 Email: `testing${n}@proton.ch`,
32 Keys: [keyActive ? activeKey : disabledKey],
39 Signature: 'Testing signature',
48 export const generateMockAddressArray = (n: number, keyActive: boolean, type?: ADDRESS_TYPE) => {
49 return Array.from(Array(n)).map((_, i) => generateMockAddress(i, keyActive, type));