habitica/test/content/quests.js

23 lines
609 B
JavaScript
Raw Normal View History

2015-09-29 12:55:35 +00:00
import {all as allQuests} from '../../common/script/src/content/quests';
import {each} from 'lodash';
describe('Quest Locales', () => {
each(allQuests, (quest, key) => {
2015-09-29 13:06:48 +00:00
describe(`${key} Quest`, () => {
it('has a valid text attribute', () => {
expectValidTranslationString(quest.text);
});
2015-09-29 12:55:35 +00:00
2015-09-29 13:06:48 +00:00
it('has a valid notes attribute', () => {
expectValidTranslationString(quest.notes);
2015-09-29 12:55:35 +00:00
});
2015-09-29 13:06:48 +00:00
if (quest.completion) {
it('has a valid completion attribute', () => {
expectValidTranslationString(quest.completion);
});
}
});
2015-09-29 12:55:35 +00:00
});
});