mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(test): correct schedule test
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
|||||||
import QUEST_PETS from '../../website/common/script/content/quests/pets';
|
import QUEST_PETS from '../../website/common/script/content/quests/pets';
|
||||||
import QUEST_HATCHINGPOTIONS from '../../website/common/script/content/quests/potions';
|
import QUEST_HATCHINGPOTIONS from '../../website/common/script/content/quests/potions';
|
||||||
import QUEST_BUNDLES from '../../website/common/script/content/bundles';
|
import QUEST_BUNDLES from '../../website/common/script/content/bundles';
|
||||||
import { premium } from '../../website/common/script/content/hatching-potions';
|
import potions from '../../website/common/script/content/hatching-potions';
|
||||||
import SPELLS from '../../website/common/script/content/spells';
|
import SPELLS from '../../website/common/script/content/spells';
|
||||||
import QUEST_SEASONAL from '../../website/common/script/content/quests/seasonal';
|
import QUEST_SEASONAL from '../../website/common/script/content/quests/seasonal';
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ describe('Content Schedule', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('premium hatching potions', () => {
|
it('premium hatching potions', () => {
|
||||||
const potionKeys = Object.keys(premium);
|
const potionKeys = Object.keys(potions.premium);
|
||||||
Object.keys(MONTHLY_SCHEDULE).forEach(key => {
|
Object.keys(MONTHLY_SCHEDULE).forEach(key => {
|
||||||
const monthlyPotions = MONTHLY_SCHEDULE[key][21].find(item => item.type === 'premiumHatchingPotions');
|
const monthlyPotions = MONTHLY_SCHEDULE[key][21].find(item => item.type === 'premiumHatchingPotions');
|
||||||
for (const potion of monthlyPotions.items) {
|
for (const potion of monthlyPotions.items) {
|
||||||
|
|||||||
Reference in New Issue
Block a user