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