Test last page search
This commit is contained in:
parent
3de3ddfa62
commit
c05a93f875
|
@ -185,6 +185,17 @@ describe("/api/global/groups", () => {
|
||||||
hasNextPage: true,
|
hasNextPage: true,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it("bookmarking the last page, should return last page info", async () => {
|
||||||
|
const result = await config.api.groups.searchUsers(groupId, {
|
||||||
|
bookmark: users[20]._id,
|
||||||
|
})
|
||||||
|
expect(result.body).toEqual({
|
||||||
|
users: users.slice(20),
|
||||||
|
bookmark: undefined,
|
||||||
|
hasNextPage: false,
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue