mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Add FAQ content test
This commit is contained in:
32
test/content/faq.js
Normal file
32
test/content/faq.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import {questions, stillNeedHelp} from '../../common/script/src/content/faq';
|
||||
import {each} from 'lodash';
|
||||
|
||||
describe('FAQ Locales', () => {
|
||||
describe('Questions', () => {
|
||||
each(questions, (question, index) => {
|
||||
describe(`FAQ ${index}`, () => {
|
||||
it('has a valid question', () => {
|
||||
expectValidTranslationString(question.question);
|
||||
});
|
||||
|
||||
it('has a valid ios answer', () => {
|
||||
expectValidTranslationString(question.ios);
|
||||
});
|
||||
|
||||
it('has a valid web answer', () => {
|
||||
expectValidTranslationString(question.web);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Still Need Help Message', () => {
|
||||
it('has a valid ios message', () => {
|
||||
expectValidTranslationString(stillNeedHelp.ios);
|
||||
});
|
||||
|
||||
it('has a valid web message', () => {
|
||||
expectValidTranslationString(stillNeedHelp.web);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user