- const res = await getVideosList(server.url)
-
- expect(res.body.total).to.equal(1)
-
- const videos: Video[] = res.body.data
-
- const video: VideoDetails = (await getVideo(server.url, videos[0].uuid)).body
+ const { total, data } = await server.videos.list()
+ expect(total).to.equal(1)