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

33 lines
850 B
JavaScript
Raw Normal View History

import {
2015-10-03 16:19:27 +00:00
expectValidTranslationString,
describeEachItem
} from '../helpers/content.helper';
2015-09-29 17:33:55 +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);
});
});
});