mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
23 lines
550 B
JavaScript
23 lines
550 B
JavaScript
import {
|
|
expectValidTranslationString,
|
|
describeEachItem
|
|
} from '../helpers/content.helper';
|
|
import {each} from 'lodash';
|
|
|
|
import backgroundSets from '../../common/script/src/content/backgrounds';
|
|
|
|
describe('Backgrounds', () => {
|
|
each(backgroundSets, (set, name) => {
|
|
describeEachItem(name, set, (bg, key) => {
|
|
it('has a valid text attribute', () => {
|
|
expectValidTranslationString(bg.text);
|
|
});
|
|
|
|
it('has a valid notes attribute', () => {
|
|
expectValidTranslationString(bg.notes);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|