File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,18 @@ describe("voteOnSponsorTime", () => {
293
293
. catch ( err => done ( err ) ) ;
294
294
} ) ;
295
295
296
+ it ( "Should not able to change to chapter category" , ( done ) => {
297
+ const UUID = "incorrect-category" ;
298
+ postVoteCategory ( randomID2 , UUID , "chapter" )
299
+ . then ( async res => {
300
+ assert . strictEqual ( res . status , 400 ) ;
301
+ const row = await getSegmentCategory ( UUID ) ;
302
+ assert . strictEqual ( row . category , "sponsor" ) ;
303
+ done ( ) ;
304
+ } )
305
+ . catch ( err => done ( err ) ) ;
306
+ } ) ;
307
+
296
308
it ( "Should be able to change your vote for a category and it should add your vote to the database(segment unlocked, nextCatgeory unlocked)" , ( done ) => {
297
309
const UUID = "vote-uuid-4" ;
298
310
postVoteCategory ( randomID2 , UUID , "outro" )
You can’t perform that action at this time.
0 commit comments