Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/appview-v2' into appview-v2-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Feb 7, 2024
2 parents 7a207f5 + e610da9 commit 84cfbd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bsky/tests/views/suggestions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ describe('pds user search views', () => {

it('paginates', async () => {
const result1 = await agent.api.app.bsky.actor.getSuggestions(
{ limit: 1 },
{ limit: 2 },
{ headers: await network.serviceHeaders(sc.dids.carol) },
)
expect(result1.data.actors.length).toBe(1)
expect(result1.data.actors[0].handle).toEqual('bob.test')

const result2 = await agent.api.app.bsky.actor.getSuggestions(
{ limit: 1, cursor: result1.data.cursor },
{ limit: 2, cursor: result1.data.cursor },
{ headers: await network.serviceHeaders(sc.dids.carol) },
)
expect(result2.data.actors.length).toBe(1)
expect(result2.data.actors[0].handle).toEqual('dan.test')

const result3 = await agent.api.app.bsky.actor.getSuggestions(
{ limit: 1, cursor: result2.data.cursor },
{ limit: 2, cursor: result2.data.cursor },
{ headers: await network.serviceHeaders(sc.dids.carol) },
)
expect(result3.data.actors.length).toBe(0)
Expand Down

0 comments on commit 84cfbd8

Please sign in to comment.