diff --git a/packages/bsky/tests/views/posts.test.ts b/packages/bsky/tests/views/posts.test.ts index 56f89832f73..caeface3751 100644 --- a/packages/bsky/tests/views/posts.test.ts +++ b/packages/bsky/tests/views/posts.test.ts @@ -4,6 +4,7 @@ import { RecordWithMedia } from '../../dist/views/types' import { ids } from '../../src/lexicon/lexicons' import { RecordEmbed, VideoEmbed } from '../../src/views/types' import { forSnapshot, stripViewerFromPost } from '../_util' +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('