mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Adjust faq test
This commit is contained in:
@@ -1,22 +1,28 @@
|
|||||||
|
import { each } from 'lodash';
|
||||||
import {
|
import {
|
||||||
expectValidTranslationString,
|
expectValidTranslationString,
|
||||||
describeEachItem
|
|
||||||
} from '../helpers/content.helper';
|
} from '../helpers/content.helper';
|
||||||
|
|
||||||
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
||||||
|
|
||||||
describe('FAQ Locales', () => {
|
describe('FAQ Locales', () => {
|
||||||
describeEachItem('Questions', questions, (question, index) => {
|
describe('Questions', () => {
|
||||||
it('has a valid question', () => {
|
it('has a valid questions', () => {
|
||||||
expectValidTranslationString(question.question);
|
each(questions, (question, key) => {
|
||||||
|
expectValidTranslationString(question.question);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has a valid ios answer', () => {
|
it('has a valid ios answers', () => {
|
||||||
expectValidTranslationString(question.ios);
|
each(questions, (question, key) => {
|
||||||
|
expectValidTranslationString(question.ios);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has a valid web answer', () => {
|
it('has a valid web answers', () => {
|
||||||
expectValidTranslationString(question.web);
|
each(questions, (question, key) => {
|
||||||
|
expectValidTranslationString(question.web);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user