33b6de85cc
by @CuriousMagpie with edits by @SabreCat
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);
|
|
});
|
|
});
|
|
});
|