Skip to content

Commit

Permalink
Slightly reworked tests to cover more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkelM committed Nov 25, 2023
1 parent f01adc3 commit e417660
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/playlistPermutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,23 +248,23 @@ const defaultLocalShorts = {
"LOC_S_00002": daysAgo(4).substring(0, 10),
"LOC_S_00003": daysAgo(10).substring(0, 10),
"LOC_S_00004": sixDaysAgo.substring(0, 10),
"LOC_S_00005": daysAgo(12).substring(0, 10),
"LOC_S_00005": daysAgo(72).substring(0, 10),
};

const defaultLocalVideos = {
"LOC_V_00006": threeDaysAgo.substring(0, 10),
"LOC_V_00007": daysAgo(4).substring(0, 10),
"LOC_V_00008": daysAgo(10).substring(0, 10),
"LOC_V_00009": sixDaysAgo.substring(0, 10),
"LOC_V_00010": daysAgo(12).substring(0, 10),
"LOC_V_00010": daysAgo(72).substring(0, 10),
};

const defaultLocalDeletedVideos = {
"DEL_LOC_S_1": fourteenDaysAgo.substring(0, 10),
"DEL_LOC_S_2": fourteenDaysAgo.substring(0, 10),
"DEL_LOC_V_3": fourteenDaysAgo.substring(0, 10),
"DEL_LOC_V_4": fourteenDaysAgo.substring(0, 10),
"DEL_LOC_V_5": fourteenDaysAgo.substring(0, 10)
"DEL_LOC_S_1": threeDaysAgo.substring(0, 10),
"DEL_LOC_S_2": threeDaysAgo.substring(0, 10),
"DEL_LOC_V_3": threeDaysAgo.substring(0, 10),
"DEL_LOC_V_4": threeDaysAgo.substring(0, 10),
"DEL_LOC_V_5": threeDaysAgo.substring(0, 10)
};

const defaultDBVideos = {
Expand All @@ -273,9 +273,9 @@ const defaultDBVideos = {
};

const defaultDBDeletedVideos = {
"DEL_DB_V_01": fourteenDaysAgo.substring(0, 10),
"DEL_DB_V_02": fourteenDaysAgo.substring(0, 10),
"DEL_DB_V_03": fourteenDaysAgo.substring(0, 10)
"DEL_DB_V_01": threeDaysAgo.substring(0, 10),
"DEL_DB_V_02": threeDaysAgo.substring(0, 10),
"DEL_DB_V_03": threeDaysAgo.substring(0, 10)
};

// The YT API returns a full-length timestamp
Expand Down

0 comments on commit e417660

Please sign in to comment.