habitica/test/content/hatching-potions.js

17 lines
472 B
JavaScript
Raw Normal View History

2015-09-29 13:09:43 +00:00
import hatchingPotions from '../../common/script/src/content/hatching-potions';
import {each} from 'lodash';
describe('Hatching Potion Locales', () => {
each(hatchingPotions, (potion, key) => {
describe(`${key} Potion`, () => {
it('has a valid text attribute', () => {
expectValidTranslationString(potion.text);
});
it('has a valid notes attribute', () => {
expectValidTranslationString(potion.notes);
});
});
});
});