[READ-ONLY] Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
6

Configure Feed

Select the types of activity you want to include in your feed.

Update unit tests

Grace Kind (Jul 10, 2026, 7:25 PM -0500) b1f06bf5 ea4af41b

+2 -9
+2 -9
tests/unit/specs/dataLayer/requests.test.js
··· 1817 1817 assertEquals(stored.messages[1].id, "m2"); 1818 1818 }); 1819 1819 1820 - it("should null out cursor when validation second-page is empty", async () => { 1820 + it("should null out cursor when a page comes back empty with a cursor", async () => { 1821 1821 const dataStore = new DataStore(); 1822 - let calls = 0; 1823 1822 const mockApi = { 1824 - getMessages: async () => { 1825 - calls += 1; 1826 - if (calls === 1) { 1827 - return { messages: [{ id: "m1" }], cursor: "fakecursor" }; 1828 - } 1829 - return { messages: [], cursor: null }; 1830 - }, 1823 + getMessages: async () => ({ messages: [], cursor: "fakecursor" }), 1831 1824 }; 1832 1825 const requests = makeRequests(mockApi, dataStore); 1833 1826