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