mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
37 lines
961 B
JavaScript
37 lines
961 B
JavaScript
import {
|
|
expectValidTranslationString
|
|
} from '../helpers/content.helper';
|
|
import {each} from 'lodash';
|
|
|
|
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
|
|
|
describe('FAQ Locales', () => {
|
|
describe('Questions', () => {
|
|
each(questions, (question, index) => {
|
|
describe(`FAQ ${index}`, () => {
|
|
it('has a valid question', () => {
|
|
expectValidTranslationString(question.question);
|
|
});
|
|
|
|
it('has a valid ios answer', () => {
|
|
expectValidTranslationString(question.ios);
|
|
});
|
|
|
|
it('has a valid web answer', () => {
|
|
expectValidTranslationString(question.web);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
describe('Still Need Help Message', () => {
|
|
it('has a valid ios message', () => {
|
|
expectValidTranslationString(stillNeedHelp.ios);
|
|
});
|
|
|
|
it('has a valid web message', () => {
|
|
expectValidTranslationString(stillNeedHelp.web);
|
|
});
|
|
});
|
|
});
|