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