diff --git a/test/content/spells.js b/test/content/spells.js new file mode 100644 index 0000000000..4668281c62 --- /dev/null +++ b/test/content/spells.js @@ -0,0 +1,3 @@ +describe.only('Spells Locales', () => { + runTestsInDirectory('spells'); +}); diff --git a/test/content/spells/healer.js b/test/content/spells/healer.js new file mode 100644 index 0000000000..9b7573e2e8 --- /dev/null +++ b/test/content/spells/healer.js @@ -0,0 +1,16 @@ +import spells from '../../../common/script/src/content/spells/healer'; +import {each} from 'lodash'; + +describe('Healer Spells', () => { + each(spells, (spell, key) => { + describe(`${key} Spell`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(spell.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(spell.notes); + }); + }); + }); +}); diff --git a/test/content/spells/rogue.js b/test/content/spells/rogue.js new file mode 100644 index 0000000000..37aae0a1db --- /dev/null +++ b/test/content/spells/rogue.js @@ -0,0 +1,16 @@ +import spells from '../../../common/script/src/content/spells/rogue'; +import {each} from 'lodash'; + +describe('Rogue Spells', () => { + each(spells, (spell, key) => { + describe(`${key} Spell`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(spell.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(spell.notes); + }); + }); + }); +}); diff --git a/test/content/spells/warrior.js b/test/content/spells/warrior.js new file mode 100644 index 0000000000..b57a6c9a8d --- /dev/null +++ b/test/content/spells/warrior.js @@ -0,0 +1,16 @@ +import spells from '../../../common/script/src/content/spells/warrior'; +import {each} from 'lodash'; + +describe('Warrior Spells', () => { + each(spells, (spell, key) => { + describe(`${key} Spell`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(spell.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(spell.notes); + }); + }); + }); +}); diff --git a/test/content/spells/wizard.js b/test/content/spells/wizard.js new file mode 100644 index 0000000000..087a61768e --- /dev/null +++ b/test/content/spells/wizard.js @@ -0,0 +1,16 @@ +import spells from '../../../common/script/src/content/spells/wizard'; +import {each} from 'lodash'; + +describe('Mage Spells', () => { + each(spells, (spell, key) => { + describe(`${key} Spell`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(spell.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(spell.notes); + }); + }); + }); +});