From 7dc86d00e685d1b75d7b5da59a4e6b8826e6cb42 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Wed, 29 Jul 2026 08:27:06 -0400 Subject: [PATCH] Remove gallery offset regression test --- .../maybeApplyGalleryOffsetStyles.test.ts | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/components/images/Gallery/maybeApplyGalleryOffsetStyles.test.ts diff --git a/src/components/images/Gallery/maybeApplyGalleryOffsetStyles.test.ts b/src/components/images/Gallery/maybeApplyGalleryOffsetStyles.test.ts deleted file mode 100644 index 19651c503d..0000000000 --- a/src/components/images/Gallery/maybeApplyGalleryOffsetStyles.test.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {type AppBskyFeedDefs, type ModerationUI} from '@atproto/api' - -import {maybeApplyGalleryOffsetStyles} from './maybeApplyGalleryOffsetStyles' - -describe('maybeApplyGalleryOffsetStyles', () => { - it('does not offset a record with external media', () => { - const post = { - record: { - $type: 'app.bsky.feed.post', - createdAt: '2026-07-28T01:02:03.957Z', - text: '', - embed: { - $type: 'app.bsky.embed.recordWithMedia', - media: { - $type: 'app.bsky.embed.external', - external: { - description: 'A GIF', - title: 'Let Them Fight', - uri: 'https://example.com/image.gif', - }, - }, - record: { - $type: 'app.bsky.embed.record', - record: { - cid: 'bafyrei', - uri: 'at://did:plc:example/app.bsky.feed.post/example', - }, - }, - }, - }, - } as unknown as AppBskyFeedDefs.PostView - const modui = {} as ModerationUI - - expect(maybeApplyGalleryOffsetStyles('meta', {post, modui})).toBeUndefined() - expect( - maybeApplyGalleryOffsetStyles('embed', {post, modui}), - ).toBeUndefined() - }) -})