fix(test): stub newly relevant function

This commit is contained in:
SabreCat
2022-09-15 12:20:11 -05:00
parent 9a8d1854b9
commit 4c34c68d78

View File

@@ -692,14 +692,14 @@ describe('payments/index', () => {
context('Active Promotion', () => {
beforeEach(() => {
sinon.stub(worldState, 'getCurrentEvent').returns({
sinon.stub(worldState, 'getCurrentEventList').returns([{
...common.content.events.fall2020,
event: 'fall2020',
});
}]);
});
afterEach(() => {
worldState.getCurrentEvent.restore();
worldState.getCurrentEventList.restore();
});
it('applies a discount', async () => {