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
|
|
|
|
2015-11-15 18:34:40 +00:00
|
|
|
import {questions, stillNeedHelp} from '../../common/script/content/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', () => {
|
|
|
|
|
each(questions, (question, key) => {
|
|
|
|
|
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 ios answers', () => {
|
|
|
|
|
each(questions, (question, key) => {
|
|
|
|
|
expectValidTranslationString(question.ios);
|
|
|
|
|
});
|
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', () => {
|
|
|
|
|
each(questions, (question, key) => {
|
|
|
|
|
expectValidTranslationString(question.web);
|
|
|
|
|
});
|
2015-09-29 17:33:55 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe('Still Need Help Message', () => {
|
|
|
|
|
it('has a valid ios message', () => {
|
|
|
|
|
expectValidTranslationString(stillNeedHelp.ios);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('has a valid web message', () => {
|
|
|
|
|
expectValidTranslationString(stillNeedHelp.web);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|