mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix content tests
This commit is contained in:
parent
17c7a2bad1
commit
3a6a4092f9
5 changed files with 13 additions and 9 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue