diff --git a/packages/bsky/tests/views/posts.test.ts b/packages/bsky/tests/views/posts.test.ts index 8fbaab77019..5697d471d4a 100644 --- a/packages/bsky/tests/views/posts.test.ts +++ b/packages/bsky/tests/views/posts.test.ts @@ -4,6 +4,7 @@ import { forSnapshot, stripViewerFromPost } from '../_util' import { RecordEmbed, VideoEmbed } from '../../src/views/types' import { RecordWithMedia } from '../../dist/views/types' import { ids } from '../../src/lexicon/lexicons' +import { XRPCError } from '@atproto/xrpc' describe('pds posts views', () => { let network: TestNetwork @@ -189,4 +190,22 @@ describe('pds posts views', () => { expect(data.posts.length).toBe(1) expect(forSnapshot(data.posts[0])).toMatchSnapshot() }) + + it('upload malformed svg', async () => { + try { + await pdsAgent.api.com.atproto.repo.uploadBlob( + Buffer.from('