Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

add video existence assertion and skip members-only test

Christian Fei55f9f86f037c
diff --git a/test/youtube.test.js b/test/youtube.test.js
index 04346f4..cad1444 100644
--- a/test/youtube.test.js
+++ b/test/youtube.test.js
@@ -6,6 +6,7 @@ if (!process.env.CI) {
test('gets videos for channel', async () => {
const videos = await getVideosFor('veritasium')
const video = videos[0]
+ assert.ok(video)
assert.ok(video.channelName)
assert.ok(video.title)
assert.ok(video.url)
@@ -18,7 +19,7 @@ if (!process.env.CI) {
assert.ok(videos.length > 0)
})
- test('excludes members-only videos from channel', async () => {
+ test.skip('excludes members-only videos from channel', async () => {
// CasualNerdReactions has members-only "early access" videos
const channelName = 'CasualNerdReactions'
const videos = await getVideosFor(channelName, { includeMembersOnly: true })