mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Add background content test
This commit is contained in:
parent
0fc41abe25
commit
c846cfd653
1 changed files with 21 additions and 0 deletions
21
test/content/backgrounds.js
Normal file
21
test/content/backgrounds.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in a new issue