From c6a7dee8cd5fe1d56dc4f0013ff86f8042d54261 Mon Sep 17 00:00:00 2001 From: Rishi Balakrishnan Date: Wed, 9 Sep 2026 11:35:24 -0400 Subject: [PATCH] Delete src/lib/__tests__/default-feeds.test.ts --- src/lib/__tests__/default-feeds.test.ts | 44 ------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/lib/__tests__/default-feeds.test.ts diff --git a/src/lib/__tests__/default-feeds.test.ts b/src/lib/__tests__/default-feeds.test.ts deleted file mode 100644 index 089d21c8f..000000000 --- a/src/lib/__tests__/default-feeds.test.ts +++ /dev/null @@ -1,44 +0,0 @@ -import {BSKY_SERVICE, FOR_YOU_FEED_URI} from '#/lib/constants' -import {prioritizeForYouForBlackskyPds} from '#/lib/default-feeds' - -const defaults = [ - { - type: 'feed', - value: 'at://did:plc:example/app.bsky.feed.generator/trending', - pinned: true, - }, - {type: 'timeline', value: 'following', pinned: true}, -] - -describe('prioritizeForYouForBlackskyPds', () => { - it('pins For You first for accounts on the Blacksky PDS', () => { - expect(prioritizeForYouForBlackskyPds(defaults, BSKY_SERVICE)).toEqual([ - {type: 'feed', value: FOR_YOU_FEED_URI, pinned: true}, - ...defaults, - ]) - }) - - it('moves an existing For You feed first without duplicating it', () => { - expect( - prioritizeForYouForBlackskyPds( - [...defaults, {type: 'feed', value: FOR_YOU_FEED_URI, pinned: false}], - BSKY_SERVICE, - ), - ).toEqual([ - {type: 'feed', value: FOR_YOU_FEED_URI, pinned: true}, - ...defaults, - ]) - }) - - it('accepts the normalized Blacksky PDS URL', () => { - expect( - prioritizeForYouForBlackskyPds(defaults, `${BSKY_SERVICE}/`)[0], - ).toEqual({type: 'feed', value: FOR_YOU_FEED_URI, pinned: true}) - }) - - it('leaves accounts on other PDSes unchanged', () => { - expect( - prioritizeForYouForBlackskyPds(defaults, 'https://pds.example.com'), - ).toBe(defaults) - }) -}) -- knotmirror 0.0.1