2015-10-03 15:48:42 +00:00
|
|
|
import {
|
2015-10-03 16:19:27 +00:00
|
|
|
expectValidTranslationString,
|
|
|
|
|
describeEachItem
|
2015-10-03 15:48:42 +00:00
|
|
|
} from '../helpers/content.helper';
|
2015-09-29 17:33:55 +00:00
|
|
|
|
2015-10-03 15:48:42 +00:00
|
|
|
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
|
|
|
|
|
2015-09-29 17:33:55 +00:00
|
|
|
describe('FAQ Locales', () => {
|
2015-10-03 16:19:27 +00:00
|
|
|
describeEachItem('Questions', questions, (question, index) => {
|
|
|
|
|
it('has a valid question', () => {
|
|
|
|
|
expectValidTranslationString(question.question);
|
|
|
|
|
});
|
2015-09-29 17:33:55 +00:00
|
|
|
|
2015-10-03 16:19:27 +00:00
|
|
|
it('has a valid ios answer', () => {
|
|
|
|
|
expectValidTranslationString(question.ios);
|
|
|
|
|
});
|
2015-09-29 17:33:55 +00:00
|
|
|
|
2015-10-03 16:19:27 +00:00
|
|
|
it('has a valid web answer', () => {
|
|
|
|
|
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);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|