mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
21 lines
544 B
JavaScript
21 lines
544 B
JavaScript
import {
|
|
expectValidTranslationString
|
|
} from '../helpers/content.helper';
|
|
|
|
import { all as potions } from '../../common/script/src/content/hatching-potions';
|
|
import {each} from 'lodash';
|
|
|
|
describe('Hatching Potion Locales', () => {
|
|
each(potions, (potion, key) => {
|
|
describe(`${key} Potion`, () => {
|
|
it('has a valid text attribute', () => {
|
|
expectValidTranslationString(potion.text);
|
|
});
|
|
|
|
it('has a valid notes attribute', () => {
|
|
expectValidTranslationString(potion.notes);
|
|
});
|
|
});
|
|
});
|
|
});
|