diff --git a/test/content/gear.js b/test/content/gear.js new file mode 100644 index 0000000000..bc619a4531 --- /dev/null +++ b/test/content/gear.js @@ -0,0 +1,8 @@ +import armor from '../../common/script/src/content/gear/armor'; +import {each} from 'lodash'; + +let allGear = [armor]; + +describe('Gear Locales', () => { + runTestsInDirectory('gear'); +}); diff --git a/test/content/gear/armor.js b/test/content/gear/armor.js new file mode 100644 index 0000000000..301d49e4c9 --- /dev/null +++ b/test/content/gear/armor.js @@ -0,0 +1,18 @@ +import armor from '../../../common/script/src/content/gear/armor'; +import {each} from 'lodash'; + +describe('Armor', () => { + each(armor, (set) => { + each(set, (gear, key) => { + describe(`${key} Armor`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/back.js b/test/content/gear/back.js new file mode 100644 index 0000000000..a2d58b2faa --- /dev/null +++ b/test/content/gear/back.js @@ -0,0 +1,18 @@ +import back from '../../../common/script/src/content/gear/back'; +import {each} from 'lodash'; + +describe('Back', () => { + each(back, (set) => { + each(set, (gear, key) => { + describe(`${key} Back`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/body.js b/test/content/gear/body.js new file mode 100644 index 0000000000..5017046137 --- /dev/null +++ b/test/content/gear/body.js @@ -0,0 +1,18 @@ +import body from '../../../common/script/src/content/gear/body'; +import {each} from 'lodash'; + +describe('Body', () => { + each(body, (set) => { + each(set, (gear, key) => { + describe(`${key} Body`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/eyewear.js b/test/content/gear/eyewear.js new file mode 100644 index 0000000000..d5473c4274 --- /dev/null +++ b/test/content/gear/eyewear.js @@ -0,0 +1,18 @@ +import eyewear from '../../../common/script/src/content/gear/eyewear'; +import {each} from 'lodash'; + +describe('Eyewear', () => { + each(eyewear, (set) => { + each(set, (gear, key) => { + describe(`${key} Eyewear`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/head-accessory.js b/test/content/gear/head-accessory.js new file mode 100644 index 0000000000..a305832f63 --- /dev/null +++ b/test/content/gear/head-accessory.js @@ -0,0 +1,18 @@ +import headAccessory from '../../../common/script/src/content/gear/head-accessory'; +import {each} from 'lodash'; + +describe('Head Accessory', () => { + each(headAccessory, (set) => { + each(set, (gear, key) => { + describe(`${key} Head Accessory`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/head.js b/test/content/gear/head.js new file mode 100644 index 0000000000..9cdd0ceee8 --- /dev/null +++ b/test/content/gear/head.js @@ -0,0 +1,18 @@ +import head from '../../../common/script/src/content/gear/head'; +import {each} from 'lodash'; + +describe('Head', () => { + each(head, (set) => { + each(set, (gear, key) => { + describe(`${key} Head`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/shield.js b/test/content/gear/shield.js new file mode 100644 index 0000000000..96c78df569 --- /dev/null +++ b/test/content/gear/shield.js @@ -0,0 +1,18 @@ +import shield from '../../../common/script/src/content/gear/shield'; +import {each} from 'lodash'; + +describe('Shield', () => { + each(shield, (set) => { + each(set, (gear, key) => { + describe(`${key} Shield`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +}); diff --git a/test/content/gear/weapon.js b/test/content/gear/weapon.js new file mode 100644 index 0000000000..a93f0c546a --- /dev/null +++ b/test/content/gear/weapon.js @@ -0,0 +1,18 @@ +import weapon from '../../../common/script/src/content/gear/weapon'; +import {each} from 'lodash'; + +describe('Weapon', () => { + each(weapon, (set) => { + each(set, (gear, key) => { + describe(`${key} Weapon`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(gear.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(gear.notes); + }); + }); + }); + }); +});