mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-02 07:49:39 +00:00
22 lines
550 B
JavaScript
22 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);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|