fix(test): dummy event to test promotions

This commit is contained in:
Sabe Jones
2021-01-08 13:34:04 -06:00
parent b88389787d
commit cec01f49bd
2 changed files with 6 additions and 1 deletions

View File

@@ -269,7 +269,7 @@ describe('payments/index', () => {
context('Active Promotion', () => {
beforeEach(() => {
sinon.stub(worldState, 'getCurrentEvent').returns({
...common.content.events.winter2021,
...common.content.events.winter2021Promo,
event: 'winter2021',
});
});

View File

@@ -23,6 +23,11 @@ export const EVENTS = {
end: '2021-01-31T20:00-05:00',
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: {
start: '2020-10-31T20:00-05:00',
end: '2020-12-17T08:00-05:00',