about summary refs log tree commit diff
path: root/src/state/persisted/__tests__/fixtures.ts
blob: ac8f7c8d1dd9f843704bac4f85f22bd7229d2ac8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import type {LegacySchema} from '#/state/persisted/legacy'

export const ALICE_DID = 'did:plc:ALICE_DID'
export const BOB_DID = 'did:plc:BOB_DID'

export const LEGACY_DATA_DUMP: LegacySchema = {
  session: {
    data: {
      service: 'https://bsky.social/',
      did: ALICE_DID,
    },
    accounts: [
      {
        service: 'https://bsky.social',
        did: ALICE_DID,
        refreshJwt: 'refreshJwt',
        accessJwt: 'accessJwt',
        handle: 'alice.test',
        email: 'alice@bsky.test',
        displayName: 'Alice',
        aviUrl: 'avi',
        emailConfirmed: true,
      },
      {
        service: 'https://bsky.social',
        did: BOB_DID,
        refreshJwt: 'refreshJwt',
        accessJwt: 'accessJwt',
        handle: 'bob.test',
        email: 'bob@bsky.test',
        displayName: 'Bob',
        aviUrl: 'avi',
        emailConfirmed: true,
      },
    ],
  },
  me: {
    did: ALICE_DID,
    handle: 'alice.test',
    displayName: 'Alice',
    description: '',
    avatar: 'avi',
  },
  onboarding: {step: 'Home'},
  shell: {colorMode: 'system'},
  preferences: {
    primaryLanguage: 'en',
    contentLanguages: ['en'],
    postLanguage: 'en',
    postLanguageHistory: ['en', 'en', 'ja', 'pt', 'de', 'en'],
    contentLabels: {
      nsfw: 'warn',
      nudity: 'warn',
      suggestive: 'warn',
      gore: 'warn',
      hate: 'hide',
      spam: 'hide',
      impersonation: 'warn',
    },
    savedFeeds: ['feed_a', 'feed_b', 'feed_c'],
    pinnedFeeds: ['feed_a', 'feed_b'],
    requireAltTextEnabled: false,
  },
  invitedUsers: {seenDids: [], copiedInvites: []},
  mutedThreads: {uris: []},
  reminders: {},
}