feat: add starpage continuation
This commit is contained in:
parent
0bc9496865
commit
9ced819abe
9 changed files with 27705 additions and 13728 deletions
|
|
@ -1220,6 +1220,21 @@ async fn startpage() {
|
|||
assert!(!result.is_exhausted());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn startpage_cont() {
|
||||
let rp = RustyPipe::builder().strict().build();
|
||||
let startpage = rp.query().startpage().await.unwrap();
|
||||
|
||||
let next = startpage.next(rp.query()).await.unwrap().unwrap();
|
||||
|
||||
assert!(
|
||||
next.items.len() > 20,
|
||||
"expected > 20 items, got {}",
|
||||
next.items.len()
|
||||
);
|
||||
assert!(!next.is_exhausted());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn trending() {
|
||||
let rp = RustyPipe::builder().strict().build();
|
||||
|
|
|
|||
Reference in a new issue