2015-10-03 15:48:42 +00:00
|
|
|
import {
|
|
|
|
|
expectValidTranslationString
|
|
|
|
|
} from '../helpers/content.helper';
|
|
|
|
|
|
2015-10-02 02:56:14 +00:00
|
|
|
import { all as potions } from '../../common/script/src/content/hatching-potions';
|
2015-09-29 13:09:43 +00:00
|
|
|
import {each} from 'lodash';
|
|
|
|
|
|
|
|
|
|
describe('Hatching Potion Locales', () => {
|
2015-10-02 02:56:14 +00:00
|
|
|
each(potions, (potion, key) => {
|
2015-09-29 13:09:43 +00:00
|
|
|
describe(`${key} Potion`, () => {
|
|
|
|
|
it('has a valid text attribute', () => {
|
|
|
|
|
expectValidTranslationString(potion.text);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('has a valid notes attribute', () => {
|
|
|
|
|
expectValidTranslationString(potion.notes);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|