2015-10-03 15:48:42 +00:00
|
|
|
import {
|
2015-10-03 16:08:03 +00:00
|
|
|
expectValidTranslationString,
|
|
|
|
|
describeEachItem
|
2015-10-03 15:48:42 +00:00
|
|
|
} from '../helpers/content.helper';
|
2015-10-03 16:08:03 +00:00
|
|
|
import {each} from 'lodash';
|
2015-10-03 15:48:42 +00:00
|
|
|
|
2015-10-02 02:56:14 +00:00
|
|
|
import { all as potions } from '../../common/script/src/content/hatching-potions';
|
2015-09-29 13:09:43 +00:00
|
|
|
|
2015-10-03 16:08:03 +00:00
|
|
|
describeEachItem('Hatching Potions', potions, (potion, key) => {
|
|
|
|
|
it('has a valid key', () => {
|
|
|
|
|
expect(potion.key).to.eql(key);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('has a canBuy function', () => {
|
|
|
|
|
expect(potion.canBuy).to.be.a('function');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('has a valid text attribute', () => {
|
|
|
|
|
expectValidTranslationString(potion.text);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('has a valid notes attribute', () => {
|
|
|
|
|
expectValidTranslationString(potion.notes);
|
|
|
|
|
});
|
2015-09-29 13:09:43 +00:00
|
|
|
|
2015-10-03 16:08:03 +00:00
|
|
|
it('has a valid value', () => {
|
|
|
|
|
expect(potion.value).to.be.greaterThan(0);
|
2015-09-29 13:09:43 +00:00
|
|
|
});
|
|
|
|
|
});
|