mini-bomba
899000309f
make eslint scream about promises, then fix all lints
...
also rewrite a bunch of test suites from using done callbacks to using
async functions - it's way too easy to forget about a .catch() clause
2025-09-11 01:14:40 +02:00
Michael C
df40047a4b
getUserInfo
...
- add info property to User
- add insertWarning, Ban
- add insertTitle, TitleVote, Thumbnail, ThumbnailVote
- simplified insertSegments with destructuring
2023-09-28 03:45:28 -04:00
Michael C
4600b8a599
show stats to shadowhidden users
2023-08-15 19:45:17 -04:00
Ajay
9129cee9f0
Fix tests
2023-05-21 20:12:17 -04:00
Ajay
8d1025e17d
Add title and thumbnails to user stats
2023-05-09 23:53:18 -04:00
Michael C
95dd36a782
getUserInfo and free chapters tests
2022-09-30 22:58:49 -04:00
Michael C
a8ddae131d
Merge branch 'master' of github.com:ajayyy/SponsorBlockServer into more-coverage
2022-09-29 15:39:36 -04:00
mini-bomba
ed251a047a
Add a test case for getUserInfo.ts ignoring chapters for time saved calc
2022-09-28 18:18:41 +02:00
Michael C
dd7656d143
add lockCategories tests, getUserInfo
2022-09-24 22:47:40 -04:00
Ajay
de60415f55
more generous reputation
2022-06-28 18:14:12 -04:00
Michael C
a028eaa41a
object-curly-spacing
2021-09-22 18:52:35 -04:00
Michael C
c779c2c19e
everything to postClearCache
2021-09-22 17:50:06 -04:00
Michael C
5758f6512d
move utils to seperate files and folder, update imports
2021-09-21 02:02:17 -04:00
Michael C
9e9fcd47c0
finished other tests
2021-09-16 23:59:19 -04:00
Michael C
6e55f9d979
everything up to purgeAllSegments
2021-09-04 19:23:43 -04:00
Michael C
58551ba37f
add maxRewardTime
2021-08-06 00:51:22 -04:00
Michael C
5ad7c6a3ba
catch all error in endpoint
2021-08-06 00:51:22 -04:00
Ajay Ramachandran
71c01c0f3b
add option to get ban status from user info
2021-08-05 20:11:05 -04:00
Michael C
ed0d832e08
use partialDeepEquals for tests
2021-08-03 00:19:37 -04:00
Michael C
f774df972d
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-18 14:30:27 -04:00
Michael C
2075ed46e1
added null warningReason
2021-07-18 02:39:37 -04:00
Michael C
fdb88dd401
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getUserInfo/param
2021-07-18 02:38:12 -04:00
Michael C
5f2bc37e96
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-13 15:55:03 -04:00
Michael C
8b3ffe5d0d
fix eslint for tests
2021-07-12 02:43:46 -04:00
Michael C
7e977ad811
add warningReason and specify returned types
2021-07-09 12:07:36 -04:00
Michael C
178ed1e5af
replace if tests with assert
2021-07-08 00:39:57 -04:00
Michael C
d5204e9813
lint & fix tests
2021-07-05 03:14:05 -04:00
Michael C
d89b26b77d
fix eslint-errors
2021-07-04 01:36:03 -04:00
Michael C
ae8a25e481
more edge cast test cases
...
- check for null instead of 0 #267
- check that parameter specifying multiple overrides repeating parameters
2021-06-24 01:37:51 -04:00
Nanobyte
11e6c93932
Merge remote-tracking branch 'upstream/master' into fix/prepare-statements
2021-06-21 18:19:50 +02:00
Ajay Ramachandran
96015d402b
Make reputation take into account self downvotes
2021-06-20 12:57:32 -04:00
Ajay Ramachandran
0b967b9f45
Merge pull request #252 from mchangrh/segmentInfo
...
Implementation of segmentInfo and new userInfo properties
2021-06-16 13:24:39 -04:00
Michael C
a003733e51
fix test suite
2021-06-15 21:29:36 -04:00
Michael C
3b16cdb920
add last lastSegmentID
2021-06-15 17:08:17 -04:00
Michael C
607b7cbb0a
add ignored counts
2021-06-15 15:50:41 -04:00
Ajay Ramachandran
6a58a08781
Rename user info endpoint
2021-05-24 16:05:18 -04:00
Ajay Ramachandran
676fc8ea08
Add reputation to user info
2021-05-24 15:56:03 -04:00
Nanobyte
78a7f8a207
Fix test case prepare statements
2021-05-07 01:51:11 +02:00
Ajay Ramachandran
8729796e87
Make tests pass running with postgres
2021-03-07 00:21:56 -05:00
Ajay Ramachandran
46b42da5bd
Update tests to use promises
2021-03-01 21:37:35 -05:00
Nanobyte
797e0b4641
Fix test cases
2021-01-06 01:43:28 +01:00
Ajay Ramachandran
78ef129634
Add remove feature to warnUser
2020-12-29 00:18:50 -05:00
Dainius Daukševičius
08d27265fc
migrate to typescript
2020-10-26 19:13:30 +02:00