2015-11-15 16:18:10 +00:00
|
|
|
import { each } from 'lodash';
|
2015-10-03 15:48:42 +00:00
|
|
|
import {
|
2015-10-03 16:19:27 +00:00
|
|
|
expectValidTranslationString,
|
2015-10-03 15:48:42 +00:00
|
|
|
} from '../helpers/content.helper';
|
2015-09-29 17:33:55 +00:00
|
|
|
|
2019-10-03 14:35:56 +00:00
|
|
|
import faq from '../../website/common/script/content/faq';
|
|
|
|
|
|
2019-10-08 18:45:38 +00:00
|
|
|
const { questions, stillNeedHelp } = faq;
|
2015-10-03 15:48:42 +00:00
|
|
|
|
2015-09-29 17:33:55 +00:00
|
|
|
describe('FAQ Locales', () => {
|
2015-11-15 16:18:10 +00:00
|
|
|
describe('Questions', () => {
|
|
|
|
|
it('has a valid questions', () => {
|
2019-10-08 18:45:38 +00:00
|
|
|
each(questions, question => {
|
2015-11-15 16:18:10 +00:00
|
|
|
expectValidTranslationString(question.question);
|
|
|
|
|
});
|
2015-10-03 16:19:27 +00:00
|
|
|
});
|
2015-09-29 17:33:55 +00:00
|
|
|
|
2015-11-15 16:18:10 +00:00
|
|
|
it('has a valid web answers', () => {
|
2019-10-08 18:45:38 +00:00
|
|
|
each(questions, question => {
|
2015-11-15 16:18:10 +00:00
|
|
|
expectValidTranslationString(question.web);
|
|
|
|
|
});
|
2015-09-29 17:33:55 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe('Still Need Help Message', () => {
|
|
|
|
|
it('has a valid web message', () => {
|
|
|
|
|
expectValidTranslationString(stillNeedHelp.web);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|