mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Simplify background tests
This commit is contained in:
@@ -1,15 +1,14 @@
|
|||||||
import {
|
import {
|
||||||
expectValidTranslationString
|
expectValidTranslationString,
|
||||||
|
describeEachItem
|
||||||
} from '../helpers/content.helper';
|
} from '../helpers/content.helper';
|
||||||
|
|
||||||
import backgroundSets from '../../common/script/src/content/backgrounds';
|
|
||||||
import {each} from 'lodash';
|
import {each} from 'lodash';
|
||||||
|
|
||||||
describe('Backgrounds Locales', () => {
|
import backgroundSets from '../../common/script/src/content/backgrounds';
|
||||||
each(backgroundSets, (set, key) => {
|
|
||||||
describe(`${key} Set`, () => {
|
describe('Backgrounds', () => {
|
||||||
each(set, (bg, name) => {
|
each(backgroundSets, (set, name) => {
|
||||||
describe(`${name} Background`, () => {
|
describeEachItem(name, set, (bg, key) => {
|
||||||
it('has a valid text attribute', () => {
|
it('has a valid text attribute', () => {
|
||||||
expectValidTranslationString(bg.text);
|
expectValidTranslationString(bg.text);
|
||||||
});
|
});
|
||||||
@@ -20,6 +19,4 @@ describe('Backgrounds Locales', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user