Add spell tests
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
describe.only('Spells Locales', () => {
|
||||
runTestsInDirectory('spells');
|
||||
});
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user