mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fix content tests
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import eggs from '../../website/common/script/content/eggs';
|
||||
import * as eggs from '../../website/common/script/content/eggs';
|
||||
|
||||
describe('eggs', () => {
|
||||
describe('all', () => {
|
||||
|
||||
@@ -3,7 +3,9 @@ import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import {questions, stillNeedHelp} from '../../website/common/script/content/faq';
|
||||
import faq from '../../website/common/script/content/faq';
|
||||
|
||||
const {questions, stillNeedHelp} = faq;
|
||||
|
||||
describe('FAQ Locales', () => {
|
||||
describe('Questions', () => {
|
||||
|
||||
@@ -4,9 +4,11 @@ import {
|
||||
} from '../helpers/content.helper';
|
||||
import { each, camelCase } from 'lodash';
|
||||
|
||||
import { tree as allGear } from '../../website/common/script/content/gear';
|
||||
import backerGear from '../../website/common/script/content/gear/sets/special/special-backer';
|
||||
import contributorGear from '../../website/common/script/content/gear/sets/special/special-contributor';
|
||||
import gearData from '../../website/common/script/content/gear';
|
||||
import * as backerGear from '../../website/common/script/content/gear/sets/special/special-backer';
|
||||
import * as contributorGear from '../../website/common/script/content/gear/sets/special/special-contributor';
|
||||
|
||||
const allGear = gearData.tree;
|
||||
|
||||
describe('Gear', () => {
|
||||
each(allGear, (piece, gearType) => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import hatchingPotions from '../../website/common/script/content/hatching-potions';
|
||||
import * as hatchingPotions from '../../website/common/script/content/hatching-potions';
|
||||
|
||||
describe('hatchingPotions', () => {
|
||||
describe('all', () => {
|
||||
|
||||
@@ -6,9 +6,9 @@ import {
|
||||
} from '../helpers/content.helper';
|
||||
import t from '../../website/common/script/content/translation';
|
||||
|
||||
import stable from '../../website/common/script/content/stable';
|
||||
import eggs from '../../website/common/script/content/eggs';
|
||||
import potions from '../../website/common/script/content/hatching-potions';
|
||||
import * as stable from '../../website/common/script/content/stable';
|
||||
import * as eggs from '../../website/common/script/content/eggs';
|
||||
import * as potions from '../../website/common/script/content/hatching-potions';
|
||||
|
||||
describe('stable', () => {
|
||||
describe('dropPets', () => {
|
||||
|
||||
Reference in New Issue
Block a user