SponsorBlockServer/test/cases
mini-bomba 7c1abd9747
Make returned video duration in getBranding.ts consistent
Instead of picking the first segment returned by the db (i.e. possibly
random), sort segments by submission time and use the oldest visible
segment with a non-zero video duration.
2024-05-04 21:56:03 +02:00
..
addFeatures.ts update addFeatures 2023-09-27 21:03:53 -04:00
addUserAsVIP.ts addUserAsVIP 2023-09-28 20:45:02 -04:00
dbUpgrade.ts object-curly-spacing 2021-09-22 18:52:35 -04:00
downvoteSegmentArchiveJob.ts object-curly-spacing 2021-09-22 18:52:35 -04:00
environment.ts videoID validation and userID min length 2022-12-27 01:45:50 -05:00
eTag.ts Fix etag tests 2024-04-11 18:12:02 -04:00
generateVerifyToken.ts Fix type error in tests 2023-08-03 01:16:57 -04:00
getBranding.ts Make returned video duration in getBranding.ts consistent 2024-05-04 21:56:03 +02:00
getChapterNames.ts getChapterNames fix length 2023-09-27 23:57:53 -04:00
getDaysSavedFormatted.ts add 4xx tests 2022-09-25 03:31:25 -04:00
getHash.ts object-curly-spacing 2021-09-22 18:52:35 -04:00
getHashCache.ts used shared random gen for tests 2023-02-21 03:24:07 -05:00
getIP.ts add genUser frameworks, start fixing tests 2023-09-27 20:18:35 -04:00
getIsUserVIP.ts add segment generator 2023-09-27 22:21:42 -04:00
getLockCategories.ts fix typings for getSubmissionUUID, update getStatus 2023-09-30 19:08:23 -04:00
getLockCategoriesByHash.ts add 4xx tests 2022-09-25 03:31:25 -04:00
getLockReason.ts add 4xx tests 2022-09-25 03:31:25 -04:00
getSavedTimeForUser.ts add additional/missing tests 2022-09-24 22:46:35 -04:00
getSearchSegments.ts Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage 2022-10-27 01:38:08 -04:00
getSearchSegments4xx.ts getSearchSegments tests 2022-09-30 22:58:37 -04:00
getSegmentInfo.ts add more tests for coverage 2023-02-20 22:22:33 -05:00
getService.ts everything to postClearCache 2021-09-22 17:50:06 -04:00
getSkipSegments.ts add misc 400 tests 2023-02-21 20:09:57 -05:00
getSkipSegmentsByHash.ts add getByHash tests, remove redundant check 2022-09-24 22:51:52 -04:00
getStatus.ts fix typings for getSubmissionUUID, update getStatus 2023-09-30 19:08:23 -04:00
getSubmissionUUID.ts fix typings for getSubmissionUUID, update getStatus 2023-09-30 19:08:23 -04:00
getTopCategoryUsers.ts add misc 400 tests 2023-02-21 20:09:57 -05:00
getTopUsers.ts add more tests for coverage 2023-02-20 22:22:33 -05:00
getTotalStats.ts clean up getCWSUsers 2023-02-21 20:09:38 -05:00
getUserID.ts lockCategoriesHTTP 2023-09-27 23:19:25 -04:00
getUserInfo.ts getUserInfo 2023-09-28 03:45:28 -04:00
getUserInfoFree.ts Remove chapters free test 2023-03-19 00:25:59 -04:00
getUsername.ts add additional/missing tests 2022-09-24 22:46:35 -04:00
getUserStats.ts show stats to shadowhidden users 2023-08-15 19:45:17 -04:00
getVideoLabelByHash.ts removed logging, fixed labelByHash test cases 2022-03-31 14:05:07 -04:00
getVideoLabels.ts endpoint + tests for getVideoLabels 2022-03-31 03:47:06 -04:00
getViewsForUser.ts getViewsForUser 2023-09-30 21:20:42 -04:00
highLoad.ts lockCategoriesHTTP 2023-09-27 23:19:25 -04:00
innerTubeApi.ts add innertube tests for private videos 2022-11-09 14:39:02 -05:00
lockCategoriesHttp.ts lockCategoriesHTTP 2023-09-27 23:19:25 -04:00
lockCategoriesRecords.ts add lockCategory tests and typo tweak 2022-09-24 22:48:48 -04:00
oldGetSponsorTime.ts object-curly-spacing 2021-09-22 18:52:35 -04:00
oldSubmitSponsorTimes.ts Add ability to add manually choose who can submit chapters 2022-07-06 00:11:45 -04:00
postBranding.ts Fix act as vip unlocking segments 2024-03-21 19:35:13 -04:00
postClearCache.ts getChapterNames 2023-09-27 23:53:18 -04:00
postPurgeAllSegments.ts remaining tests 2021-09-22 23:18:31 -04:00
postSkipSegments.ts decompose postSkipSegments more 2023-02-21 17:00:23 -05:00
postSkipSegments400.ts split postSkipSegments into stubbed 400 2023-02-21 20:09:13 -05:00
postSkipSegments400Stub.ts split postSkipSegments into stubbed 400 2023-02-21 20:09:13 -05:00
postSkipSegmentsAutomod.ts postSkipSegments improvements 2023-02-21 03:25:46 -05:00
postSkipSegmentsDuration.ts decompose postSkipSegments more 2023-02-21 17:00:23 -05:00
postSkipSegmentsFeatures.ts postSkipSegments improvements 2023-02-21 03:25:46 -05:00
postSkipSegmentsLocked.ts decompose postSkipSegments more 2023-02-21 17:00:23 -05:00
postSkipSegmentsShadowban.ts decompose postSkipSegments more 2023-02-21 17:00:23 -05:00
postSkipSegmentsUserAgent.ts decompose postSkipSegments more 2023-02-21 17:00:23 -05:00
postSkipSegmentsWarnings.ts Replace "Warning reason" with "Tip message" 2023-09-16 10:00:33 +02:00
postWarning.ts disallow empty new warnings 2023-09-27 15:09:35 -04:00
redisTest.ts add genUser frameworks, start fixing tests 2023-09-27 20:18:35 -04:00
reputation.ts add genUser frameworks, start fixing tests 2023-09-27 20:18:35 -04:00
segmentShift.ts remove extra async and extra utils 2021-09-22 23:34:46 -04:00
setUsername.ts more lenient privateIDUsername checks 2023-02-17 22:28:23 -05:00
setUsernamePrivate.ts more lenient privateIDUsername checks 2023-02-17 22:28:23 -05:00
shadowBanUser.ts clean up shadowban code, exclude long running categories query when possible 2023-12-21 18:37:24 -05:00
shadowBanUser4xx.ts shadowban tests 2022-09-30 22:58:20 -04:00
tempVip.ts test fixes 2022-09-07 02:16:23 -04:00
testUtils.ts add getIP test cases, misc others 2022-09-24 22:51:20 -04:00
tokenUtils.ts Fix type error in tests 2023-08-03 01:16:57 -04:00
unBan.ts remaining tests 2021-09-22 23:18:31 -04:00
userAgentTest.ts Parse user agent header 2021-07-31 21:49:10 -04:00
userCounter.ts add genUser frameworks, start fixing tests 2023-09-27 20:18:35 -04:00
validateVideoIDs.ts add genUser frameworks, start fixing tests 2023-09-27 20:18:35 -04:00
voteOnSponsorTime.ts Make voting requirements more strict 2023-06-08 16:50:31 +02:00