mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 02:17:31 +00:00
21 lines
615 B
TypeScript
21 lines
615 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { eventSchemas } from './telemetry-events'
|
|
|
|
describe('orca cli feature tip schemas', () => {
|
|
it('rejects raw CLI details and unknown result values', () => {
|
|
expect(
|
|
eventSchemas.orca_cli_feature_tip_setup_result.safeParse({
|
|
source: 'app_open',
|
|
result: 'installed',
|
|
command_path: '/Users/alice/bin/orca'
|
|
}).success
|
|
).toBe(false)
|
|
expect(
|
|
eventSchemas.orca_cli_feature_tip_setup_result.safeParse({
|
|
source: 'app_open',
|
|
result: 'installed_after_retry'
|
|
}).success
|
|
).toBe(false)
|
|
})
|
|
})
|