mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
fix(test): dummy event to test promotions
This commit is contained in:
parent
b88389787d
commit
cec01f49bd
2 changed files with 6 additions and 1 deletions
|
|
@ -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',
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue