test: type the stored projection fixture as format events

This commit is contained in:
creatixchu committed 2026-09-11 15:29:33 +08:00
1 parent 1d4d22c1ff
commit 401c3ef977
1 file changed
+1 -1
@@ -23,7 +23,7 @@ describe('first-party Session format catalog', () => {
session.append('user/message', createUserMessage({ content: [{ type: 'text', text: 'no image' }], source: { kind: 'user' } }), { surfaceOp: 'append' })
const artifact = {
header: { ...session.header, delegationDepth: 0 }, inheritedEventCount: 0,
events: [...session.snapshotEvents(), { type: 'image/offload', seq: 1, time: 0, data: { targets: [{ seq: 0, imageIndexes: [0] }] } }],
events: [...session.snapshotEvents() as unknown as SessionFormatEvent[], { type: 'image/offload', seq: 1, time: 0, data: { targets: [{ seq: 0, imageIndexes: [0] }] } }],
}
expect(() => validateInstalledCurrentSessionArtifact(artifact)).toThrow(/image index 0 does not exist/)
})