Commit graph

43 commits

Author SHA1 Message Date
Michael C
5cf7a61de1
restructure for postgres 2021-10-19 23:14:52 -04:00
Michael C
d0deb6fe27
finish tests and remove extra console.logs 2021-10-19 23:06:47 -04:00
FlorianZahn
69e321c405
Improved formatting 2021-10-03 19:03:49 +02:00
FlorianZahn
178c4d9792
Remove comment
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2021-10-03 18:53:34 +02:00
FlorianZahn
7135aa3369 removing console.log() commands 2021-10-02 05:11:26 +02:00
FlorianZahn
aacd297b3b Fixed bugs where normal users could cirumvent vip locks by changing categories 2021-10-02 05:04:18 +02:00
FlorianZahn
bb2a007ed1 first changes and timeout on 2nd test 2021-10-02 04:39:54 +02:00
Michael C
28d637f620
remove extra async and extra utils 2021-09-22 23:34:46 -04:00
Michael C
4e50f0ab4b
remaining tests 2021-09-22 23:18:31 -04:00
Michael C
a028eaa41a
object-curly-spacing 2021-09-22 18:52:35 -04:00
Michael C
5758f6512d
move utils to seperate files and folder, update imports 2021-09-21 02:02:17 -04:00
Michael C
e7d55d1e1b
everything after postClearCache 2021-09-16 23:05:16 -04:00
Ajay Ramachandran
c070e5f40d Fix falsey values getting through tests 2021-07-20 17:21:22 -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
178ed1e5af
replace if tests with assert 2021-07-08 00:39:57 -04:00
Michael C
d89b26b77d
fix eslint-errors 2021-07-04 01:36:03 -04:00
Ajay Ramachandran
cf592554f1
Merge branch 'master' into unhide-vote 2021-07-03 22:37:23 -04:00
Michael C
931b3fdc68
disallow vote types 10/11 2021-07-02 23:07:17 -04:00
Michael C
36a5b4e1d3
VIP upvotes unhide segments
also added test for undo-vote
2021-07-02 22:54:54 -04:00
Nanobyte
a005a961f9 Fix test cases 2021-06-22 00:59:56 +02:00
Nanobyte
11e6c93932 Merge remote-tracking branch 'upstream/master' into fix/prepare-statements 2021-06-21 18:19:50 +02:00
Ajay Ramachandran
48d88614fb Move shadow ban list to public db
Warning: Migration is not automatic
2021-06-20 13:41:35 -04:00
Ajay Ramachandran
4225d9b3b3 Silently reject votes 2021-06-08 20:20:05 -04:00
Ajay Ramachandran
590ed037dd Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into export 2021-05-23 11:17:10 -04:00
Nanobyte
78a7f8a207 Fix test case prepare statements 2021-05-07 01:51:11 +02:00
Nanobyte
f561388a1f Rename noSegments to lockCategories 2021-04-24 01:54:42 +02:00
Ajay Ramachandran
9d06bda4f8 Don't allow downvoting dead submissions 2021-04-17 16:37:39 -04:00
Ajay Ramachandran
5b2f05741e Fix no segments votes being allowed 2021-04-17 16:23:45 -04:00
Ajay Ramachandran
7bf09906d3 Prevent voting for highlight category 2021-04-05 22:33:28 -04: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
Ajay Ramachandran
ff4af3786e Switch to postgres + promises 2021-03-01 20:40:31 -05:00
Ajay Ramachandran
597dff7ac3 Unlock segment if VIP downvotes 2021-02-18 22:09:57 -05:00
Ajay Ramachandran
ef21ceb332 Add segment locking 2021-02-18 19:48:36 -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
Ajay Ramachandran
a7f04ad732 Update category test + fix double voting issue
Fix #190
2020-12-16 23:47:47 -05:00
Ajay Ramachandran
5deda4603e Allow submitter to change category immediately 2020-12-16 23:00:11 -05:00
Ajay Ramachandran
cd373f4bca Don't allow votes on locked videos 2020-12-16 22:53:49 -05:00
Ajay Ramachandran
2cd78d5d2f Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into Dainius14/master
# Conflicts:
#	src/routes/shadowBanUser.js
#	src/routes/voteOnSponsorTime.ts
#	test/cases/getSkipSegments.js
#	test/cases/voteOnSponsorTime.js
2020-12-07 17:35:15 -05:00
Dainius Dauksevicius
12729b36fb fix docker build, add proper mocks to tests, remove YouTubeAPI dependency on youtube test mock, move index.ts and test.ts to /src ant /test folders 2020-10-26 19:13:30 +02:00
Dainius Daukševičius
08d27265fc migrate to typescript 2020-10-26 19:13:30 +02:00