mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(test): return empty event list for no promo
This commit is contained in:
@@ -247,7 +247,7 @@ describe('payments/index', () => {
|
|||||||
|
|
||||||
context('No Active Promotion', () => {
|
context('No Active Promotion', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
sinon.stub(worldState, 'getCurrentEvent').returns(null);
|
sinon.stub(worldState, 'getCurrentEventList').returns([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user