(name = 'started')
| 77 | } |
| 78 | |
| 79 | function sampleEvent(name = 'started'): EnrichedTelemetryEvent { |
| 80 | return { |
| 81 | event_id: 'event-1', |
| 82 | device_id: 'device-1', |
| 83 | session_id: 'session-1', |
| 84 | event: name, |
| 85 | timestamp: 123, |
| 86 | properties: { |
| 87 | resumed: false, |
| 88 | count: 2, |
| 89 | }, |
| 90 | context: { |
| 91 | version: '1.2.3', |
| 92 | runtime: 'node', |
| 93 | }, |
| 94 | }; |
| 95 | } |
| 96 | |
| 97 | describe('TelemetryClient', () => { |
| 98 | it('queues events before sink attach, then drains with backfilled context ids', async () => { |