2015-10-03 15:48:42 +00:00
|
|
|
import {
|
2015-10-03 16:54:58 +00:00
|
|
|
expectValidTranslationString,
|
|
|
|
|
describeEachItem
|
2015-10-03 15:48:42 +00:00
|
|
|
} from '../helpers/content.helper';
|
2015-10-03 16:54:58 +00:00
|
|
|
import {each} from 'lodash';
|
2015-10-03 15:48:42 +00:00
|
|
|
|
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
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|