mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Refactor faq tests
This commit is contained in:
@@ -1,26 +1,22 @@
|
|||||||
import {
|
import {
|
||||||
expectValidTranslationString
|
expectValidTranslationString,
|
||||||
|
describeEachItem
|
||||||
} from '../helpers/content.helper';
|
} from '../helpers/content.helper';
|
||||||
import {each} from 'lodash';
|
|
||||||
|
|
||||||
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
||||||
|
|
||||||
describe('FAQ Locales', () => {
|
describe('FAQ Locales', () => {
|
||||||
describe('Questions', () => {
|
describeEachItem('Questions', questions, (question, index) => {
|
||||||
each(questions, (question, index) => {
|
it('has a valid question', () => {
|
||||||
describe(`FAQ ${index}`, () => {
|
expectValidTranslationString(question.question);
|
||||||
it('has a valid question', () => {
|
});
|
||||||
expectValidTranslationString(question.question);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('has a valid ios answer', () => {
|
it('has a valid ios answer', () => {
|
||||||
expectValidTranslationString(question.ios);
|
expectValidTranslationString(question.ios);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has a valid web answer', () => {
|
it('has a valid web answer', () => {
|
||||||
expectValidTranslationString(question.web);
|
expectValidTranslationString(question.web);
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user