feat: Add set property to content

This commit is contained in:
Blade Barringer
2016-03-15 08:34:10 -05:00
parent 9508ed45df
commit 146810a3e9
2 changed files with 12 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ describe('Gear', () => {
each(piece, (items, klass) => {
context(`${klass} ${gearType}s`, () => {
it('have a value of at least 0 for each stat', () => {
each(items, (gear, itemKey) => {
each(items, (gear) => {
expect(gear.con).to.be.at.least(0);
expect(gear.int).to.be.at.least(0);
expect(gear.per).to.be.at.least(0);
@@ -22,23 +22,29 @@ describe('Gear', () => {
});
it('have a purchase value of at least 0', () => {
each(items, (gear, itemKey) => {
each(items, (gear) => {
expect(gear.value).to.be.at.least(0);
});
});
it('has a canBuy function', () => {
each(items, (gear, itemKey) => {
each(items, (gear) => {
expect(gear.canBuy).to.be.a('function');
});
});
it('have valid translation strings for text and notes', () => {
each(items, (gear, itemKey) => {
each(items, (gear) => {
expectValidTranslationString(gear.text);
expectValidTranslationString(gear.notes);
});
});
it('has a set attribue', () => {
each(items, (gear) => {
expect(gear.set).to.exist;
});
});
});
});
});