habitica/test/content/backgrounds.js

23 lines
550 B
JavaScript
Raw Normal View History

import {
2015-10-03 16:54:58 +00:00
expectValidTranslationString,
describeEachItem
} from '../helpers/content.helper';
2015-10-03 16:54:58 +00:00
import {each} from 'lodash';
2015-09-29 17:38:34 +00:00
import backgroundSets from '../../common/script/src/content/backgrounds';
2015-10-03 16:54:58 +00:00
describe('Backgrounds', () => {
each(backgroundSets, (set, name) => {
describeEachItem(name, set, (bg, key) => {
it('has a valid text attribute', () => {
expectValidTranslationString(bg.text);
});
2015-09-29 17:38:34 +00:00
2015-10-03 16:54:58 +00:00
it('has a valid notes attribute', () => {
expectValidTranslationString(bg.notes);
2015-09-29 17:38:34 +00:00
});
});
});
});