mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
chore: update grand gala start dates (#15435)
* chore: update grand gala start date * chore: update test cases for new gala dates * chore(sales): adjust promo dates --------- Co-authored-by: Kalista Payne <sabrecat@gmail.com>
This commit is contained in:
@@ -133,21 +133,21 @@ describe('Content Schedule', () => {
|
||||
});
|
||||
|
||||
it('sets the end date for a gala', () => {
|
||||
const date = new Date('2024-05-20');
|
||||
const date = new Date('2024-05-31');
|
||||
const matchers = getAllScheduleMatchingGroups(date);
|
||||
expect(matchers.seasonalGear.end).to.eql(moment.utc(`2024-06-21T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate());
|
||||
expect(matchers.seasonalGear.end).to.eql(moment.utc(`2024-06-01T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate());
|
||||
});
|
||||
|
||||
it('sets the end date for a winter gala', () => {
|
||||
const date = new Date('2024-12-22');
|
||||
const date = new Date('2025-02-28');
|
||||
const matchers = getAllScheduleMatchingGroups(date);
|
||||
expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-21T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate());
|
||||
expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-01T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate());
|
||||
});
|
||||
|
||||
it('sets the end date in new year for a winter gala', () => {
|
||||
const date = new Date('2025-01-04');
|
||||
const date = new Date('2025-02-28');
|
||||
const matchers = getAllScheduleMatchingGroups(date);
|
||||
expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-21T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate());
|
||||
expect(matchers.seasonalGear.end).to.eql(moment.utc(`2025-03-01T${String(switchoverTime).padStart(2, '0')}:00:00.000Z`).toDate());
|
||||
});
|
||||
|
||||
it('uses correct date for first hours of the month', () => {
|
||||
|
||||
@@ -83,8 +83,8 @@ export const REPEATING_EVENTS = {
|
||||
foodSeason: 'Cake',
|
||||
},
|
||||
fallGemSale: {
|
||||
start: new Date('1970-09-17T04:00-04:00'),
|
||||
end: new Date('1970-09-24T23:59-04:00'),
|
||||
start: new Date('1970-08-27T04:00-04:00'),
|
||||
end: new Date('1970-09-03T23:59-04:00'),
|
||||
event: 'fall_extra_gems',
|
||||
gemsPromo,
|
||||
},
|
||||
@@ -109,8 +109,8 @@ export const REPEATING_EVENTS = {
|
||||
foodSeason: 'Pie',
|
||||
},
|
||||
giftOneGetOne: {
|
||||
start: new Date('1970-12-17T04:00-05:00'),
|
||||
end: new Date('1970-01-09T23:59-05:00'),
|
||||
start: new Date('1970-12-18T04:00-05:00'),
|
||||
end: new Date('1970-01-05T23:59-05:00'),
|
||||
promo: 'g1g1',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -664,7 +664,7 @@ export const MONTHLY_SCHEDULE = {
|
||||
},
|
||||
};
|
||||
|
||||
export const GALA_SWITCHOVER_DAY = 21;
|
||||
export const GALA_SWITCHOVER_DAY = 1;
|
||||
export const GALA_KEYS = [
|
||||
'winter',
|
||||
'spring',
|
||||
|
||||
Reference in New Issue
Block a user