OwnTube-tv / web-client

Portable video client for PeerTube in React Native
https://owntube-tv.github.io/web-client/
The Unlicense
0 stars 11 forks source link

Video service to support using live api data #43

Closed TOPDeveloperPB closed 1 month ago

TOPDeveloperPB commented 2 months ago

🚀 Description

These changes satisfies the item no. 2 requirements in https://github.com/OwnTube-tv/.github/issues/8.

📄 Motivation and Context

🧪 How Has This Been Tested?

These tests are designed to verify the functionality of the PeertubeVideosApi class, which interacts with the PeerTube API. Here's how they work:

Test "should return a list of videos, maximum 15 to default": Verifies whether the getVideos() method returns a list of videos, limited to a maximum of 15 items by default. Test "should return a list of videos, limited to maximum 5 when specified": Checks if the getVideos() method limits the list of videos to a maximum of 5 items when specified. Test "should return a list of videos, fetching maximum 3 per request when specified": Ensures that the getVideos() method makes requests to the PeerTube API to retrieve videos in batches of 3, when specified. Test "should return a list of videos, but not more than the total available videos": Verifies that the getVideos() method does not return more videos than the total available videos. Test "should return a list of videos, each with the properties indicated by the typing": Checks if each video in the returned list has the correct structure according to the data types. Test "should return a list of videos, each with a unique id": Ensures that each video in the returned list has a unique identifier. These tests provide verification of the core functionality and properties of the PeertubeVideosApi class, confirming its proper operation.

📷 Screenshots (if appropriate)

Знімок екрана 2024-04-30 о 12 24 40

📦 Types of changes

✅ Checklist (copied from README)

TOPDeveloperPB commented 2 months ago

Changed what was indicated

mblomdahl commented 2 months ago

Changed what was indicated

I do not understand. It is an empty commit with no changes:

image

Do you want to explain?

ar9708 commented 1 month ago

Merged in #62