Files
habitica/test/content/backgrounds.js
2015-10-03 11:54:58 -05:00

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);
});
});
});
});