mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
fix(test): dummy event to test promotions
This commit is contained in:
@@ -269,7 +269,7 @@ describe('payments/index', () => {
|
|||||||
context('Active Promotion', () => {
|
context('Active Promotion', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
sinon.stub(worldState, 'getCurrentEvent').returns({
|
sinon.stub(worldState, 'getCurrentEvent').returns({
|
||||||
...common.content.events.winter2021,
|
...common.content.events.winter2021Promo,
|
||||||
event: 'winter2021',
|
event: 'winter2021',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -23,6 +23,11 @@ export const EVENTS = {
|
|||||||
end: '2021-01-31T20:00-05:00',
|
end: '2021-01-31T20:00-05:00',
|
||||||
season: 'winter',
|
season: 'winter',
|
||||||
},
|
},
|
||||||
|
winter2021Promo: { // used in tests, not an actual past event
|
||||||
|
start: '2020-12-01T08:00-05:00',
|
||||||
|
end: '2020-12-17T20:00-05:00',
|
||||||
|
season: 'winter',
|
||||||
|
},
|
||||||
noCurrentEvent2020: {
|
noCurrentEvent2020: {
|
||||||
start: '2020-10-31T20:00-05:00',
|
start: '2020-10-31T20:00-05:00',
|
||||||
end: '2020-12-17T08:00-05:00',
|
end: '2020-12-17T08:00-05:00',
|
||||||
|
|||||||
Reference in New Issue
Block a user