habitica-self-host/test/content/faq.js

39 lines
992 B
JavaScript
Raw Normal View History

2015-11-15 16:18:10 +00:00
import { each } from 'lodash';
import {
2015-10-03 16:19:27 +00:00
expectValidTranslationString,
} 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-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);
});
});
});