fix content tests

This commit is contained in:
Matteo Pagliazzi
2019-10-03 16:35:56 +02:00
parent 17c7a2bad1
commit 3a6a4092f9
5 changed files with 13 additions and 9 deletions

View File

@@ -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', () => {

View File

@@ -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', () => {

View File

@@ -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) => {

View File

@@ -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', () => {

View File

@@ -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', () => {