From 64c732e991ef37991104600e6e09320487a7a2ea Mon Sep 17 00:00:00 2001 From: SabreCat Date: Wed, 15 Dec 2021 16:32:58 -0600 Subject: [PATCH] fix(test): stub event list not singleton --- test/api/unit/libs/payments/payments.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/unit/libs/payments/payments.test.js b/test/api/unit/libs/payments/payments.test.js index 6401a00bb2..616901d97f 100644 --- a/test/api/unit/libs/payments/payments.test.js +++ b/test/api/unit/libs/payments/payments.test.js @@ -268,14 +268,14 @@ describe('payments/index', () => { context('Active Promotion', () => { beforeEach(() => { - sinon.stub(worldState, 'getCurrentEvent').returns({ + sinon.stub(worldState, 'getCurrentEventList').returns([{ ...common.content.events.winter2021Promo, event: 'winter2021', - }); + }]); }); afterEach(() => { - worldState.getCurrentEvent.restore(); + worldState.getCurrentEventList.restore(); }); it('creates a gift subscription for purchaser and recipient if none exist', async () => {