Files
habitica/test/content/faq.js
SabreCat 33b6de85cc feat(faq): unify platform FAQs
by @CuriousMagpie with edits by @SabreCat
2023-10-31 11:41:24 -05:00

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);
});
});
});