(overrides: Partial<TlaUser> & { id: string })
| 16 | // ---- helpers ---- |
| 17 | |
| 18 | function makeUser(overrides: Partial<TlaUser> & { id: string }): TlaUser { |
| 19 | return { |
| 20 | name: 'Test', |
| 21 | email: 'test@test.com', |
| 22 | avatar: '', |
| 23 | color: '#000', |
| 24 | exportFormat: 'png', |
| 25 | exportTheme: 'auto', |
| 26 | exportBackground: true, |
| 27 | exportPadding: true, |
| 28 | createdAt: 1, |
| 29 | updatedAt: 1, |
| 30 | flags: 'groups_backend', |
| 31 | locale: null, |
| 32 | animationSpeed: null, |
| 33 | areKeyboardShortcutsEnabled: null, |
| 34 | edgeScrollSpeed: null, |
| 35 | colorScheme: null, |
| 36 | isSnapMode: null, |
| 37 | isWrapMode: null, |
| 38 | isDynamicSizeMode: null, |
| 39 | isPasteAtCursorMode: null, |
| 40 | inputMode: null, |
| 41 | enhancedA11yMode: null, |
| 42 | isZoomDirectionInverted: null, |
| 43 | allowAnalyticsCookie: null, |
| 44 | ...overrides, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | function makeFile(overrides: Partial<TlaFile> & { id: string }): TlaFile { |
| 49 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…