Files
archived-orca/cloud/packages/push-contract/src/notification-identity-limits.test.ts
OrcaWinandOrcaWin bd9483483c test: remove 395 low-value tests (#39568)
* test: remove 396 low-value tests

* test: remove 395 low-value tests

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 11:20:25 -08:00

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
)
})