From cec01f49bd72293fa524cb17facd334c6ff49003 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Fri, 8 Jan 2021 13:34:04 -0600 Subject: [PATCH] fix(test): dummy event to test promotions --- test/api/unit/libs/payments/payments.test.js | 2 +- website/common/script/content/constants/events.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/api/unit/libs/payments/payments.test.js b/test/api/unit/libs/payments/payments.test.js index 666ff59017..6401a00bb2 100644 --- a/test/api/unit/libs/payments/payments.test.js +++ b/test/api/unit/libs/payments/payments.test.js @@ -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', }); }); diff --git a/website/common/script/content/constants/events.js b/website/common/script/content/constants/events.js index e49ec4d7de..c130da2cdf 100644 --- a/website/common/script/content/constants/events.js +++ b/website/common/script/content/constants/events.js @@ -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',