(overrides: Partial<IClickhouseProfile>)
| 19 | const redis = getRedisCache(); |
| 20 | |
| 21 | function makeProfile(overrides: Partial<IClickhouseProfile>): IClickhouseProfile { |
| 22 | const now = new Date().toISOString(); |
| 23 | return { |
| 24 | id: 'profile-1', |
| 25 | project_id: 'project-1', |
| 26 | first_name: '', |
| 27 | last_name: '', |
| 28 | email: '', |
| 29 | avatar: '', |
| 30 | properties: {}, |
| 31 | is_external: true, |
| 32 | created_at: now, |
| 33 | last_seen_at: now, |
| 34 | groups: [], |
| 35 | ...overrides, |
| 36 | }; |
| 37 | } |
| 38 | |
| 39 | beforeEach(async () => { |
| 40 | const keys = [ |
no outgoing calls
no test coverage detected