Add gear content test

This commit is contained in:
Blade Barringer
2015-09-29 09:00:27 -05:00
parent 8e9a08ba46
commit cc0eb7d672
9 changed files with 152 additions and 0 deletions

8
test/content/gear.js Normal file
View File

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

View File

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

18
test/content/gear/back.js Normal file
View File

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

18
test/content/gear/body.js Normal file
View File

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

View File

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

View File

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

18
test/content/gear/head.js Normal file
View File

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

View File

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

View File

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