Add spell tests

This commit is contained in:
Blade Barringer 2015-09-29 12:58:53 -05:00
parent 9de2ee473d
commit 152cb99750
5 changed files with 67 additions and 0 deletions

3
test/content/spells.js Normal file
View file

@ -0,0 +1,3 @@
describe.only('Spells Locales', () => {
runTestsInDirectory('spells');
});

View file

@ -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);
});
});
});
});

View file

@ -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);
});
});
});
});

View file

@ -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);
});
});
});
});

View file

@ -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);
});
});
});
});