Celebrate onboarding and agent wins with GitHub star prompts (#5642)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -1008,13 +1008,21 @@ describe('registerGitHubHandlers', () => {
|
||||
|
||||
registerGitHubHandlers(store as never, stats as never)
|
||||
|
||||
for (const source of ['star_nag', 'settings', 'landing'] as const) {
|
||||
for (const source of [
|
||||
'star_nag',
|
||||
'agent_value_moment',
|
||||
'onboarding_completed',
|
||||
'settings',
|
||||
'landing'
|
||||
] as const) {
|
||||
await expect(handlers['gh:starOrca'](null, source)).resolves.toBe(true)
|
||||
}
|
||||
|
||||
expect(trackMock).toHaveBeenCalledTimes(3)
|
||||
expect(trackMock).toHaveBeenCalledTimes(5)
|
||||
expect(trackMock.mock.calls.map(([, props]) => props)).toEqual([
|
||||
{ source: 'star_nag', nth_repo_added: undefined },
|
||||
{ source: 'agent_value_moment', nth_repo_added: undefined },
|
||||
{ source: 'onboarding_completed', nth_repo_added: undefined },
|
||||
{ source: 'settings', nth_repo_added: undefined },
|
||||
{ source: 'landing', nth_repo_added: undefined }
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user