mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* test: remove 396 low-value tests * test: remove 395 low-value tests --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
16 lines
465 B
TypeScript
16 lines
465 B
TypeScript
import { expect, it } from 'vitest'
|
|
import { PushNotificationSchema } from './send-messages.js'
|
|
const base = {
|
|
source: 'agent-task-complete',
|
|
agentState: 'finished',
|
|
notificationSeq: 1,
|
|
notificationEpoch: 'epoch',
|
|
title: 'Done',
|
|
body: ''
|
|
}
|
|
it('rejects oversized provider data by UTF-8 bytes instead of truncating identities', () => {
|
|
expect(PushNotificationSchema.safeParse({ ...base, worktreeId: '界'.repeat(1100) }).success).toBe(
|
|
false
|
|
)
|
|
})
|