Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage

This commit is contained in:
Michael C
2022-09-30 19:36:58 -04:00
17 changed files with 285 additions and 100 deletions

View File

@@ -15,7 +15,7 @@ export class YouTubeApiMock {
if (obj.id === "noDuration" || obj.id === "full_video_duration_segment") {
return {
err: null,
err: false,
data: {
title: "Example Title",
lengthSeconds: 0,
@@ -32,7 +32,7 @@ export class YouTubeApiMock {
};
} else if (obj.id === "duration-update") {
return {
err: null,
err: false,
data: {
title: "Example Title",
lengthSeconds: 500,
@@ -49,7 +49,7 @@ export class YouTubeApiMock {
};
} else if (obj.id === "channelid-convert") {
return {
err: null,
err: false,
data: {
title: "Video Lookup Title",
author: "ChannelAuthor",
@@ -58,14 +58,14 @@ export class YouTubeApiMock {
};
} else if (obj.id === "duration-changed") {
return {
err: null,
err: false,
data: {
lengthSeconds: 100,
} as APIVideoData
};
} else {
return {
err: null,
err: false,
data: {
title: "Example Title",
authorId: "ExampleChannel",