mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
extractors: Add continuation token parser
This commit is contained in:
parent
bdc51cd20f
commit
ce7db8d2cb
7 changed files with 63 additions and 62 deletions
|
@ -4,7 +4,7 @@ Spectator.describe Invidious::Hashtag do
|
|||
it "parses richItemRenderer containers (test 1)" do
|
||||
# Enable mock
|
||||
test_content = load_mock("hashtag/martingarrix_page1")
|
||||
videos = extract_items(test_content)
|
||||
videos, _ = extract_items(test_content)
|
||||
|
||||
expect(typeof(videos)).to eq(Array(SearchItem))
|
||||
expect(videos.size).to eq(60)
|
||||
|
@ -57,7 +57,7 @@ Spectator.describe Invidious::Hashtag do
|
|||
it "parses richItemRenderer containers (test 2)" do
|
||||
# Enable mock
|
||||
test_content = load_mock("hashtag/martingarrix_page2")
|
||||
videos = extract_items(test_content)
|
||||
videos, _ = extract_items(test_content)
|
||||
|
||||
expect(typeof(videos)).to eq(Array(SearchItem))
|
||||
expect(videos.size).to eq(60)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue