From 40997854dd45500ff50d649087d4881067aa81f2 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Fri, 30 Sep 2022 14:32:21 -0500 Subject: [PATCH] fix(test): restore event list function --- test/api/unit/libs/payments/payments.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api/unit/libs/payments/payments.test.js b/test/api/unit/libs/payments/payments.test.js index a89618efdf..48d6325546 100644 --- a/test/api/unit/libs/payments/payments.test.js +++ b/test/api/unit/libs/payments/payments.test.js @@ -671,12 +671,13 @@ describe('payments/index', () => { context('No Active Promotion', () => { beforeEach(() => { - sinon.stub(worldState, 'getCurrentEventList').returns([]); sinon.stub(worldState, 'getCurrentEvent').returns(null); + sinon.stub(worldState, 'getCurrentEventList').returns([]); }); afterEach(() => { worldState.getCurrentEvent.restore(); + worldState.getCurrentEventList.restore(); }); it('does not apply a discount', async () => {