Added option to disable recursive specials. added armor and shields test

This commit is contained in:
Russell Champoux committed 2015-03-18 16:59:24 -04:00
1 parent 704ce5daae
commit c368663ee6
3 files changed
+52 -41

No files matched your search

+8 -6
View File
@@ -1,7 +1,7 @@
/*global Grimoire:true, _:true, jasmine:true, describe:true, beforeEach:true, it:true, expect:true*/
'use strict';
xdescribe('Sources', function() {
describe('Sources', function() {
var grimoire = new Grimoire();
it('should load sources', function() {
expect(grimoire.SOURCES).toBeTruthy();
@@ -64,7 +64,7 @@ xdescribe('Sources', function() {
}
});
//CURRENTLY MISSING WEIGHTS ON APG ITEMS
xit('should have weights', function() {
it('should have weights', function() {
for(var i in itemList) {
var weightSum = _.sum(_.values(itemList[i].weight));
expect(weightSum).toBeGreaterThan(0);
@@ -300,10 +300,12 @@ describe('Grimoire', function() {
});
});
//not written yet
// describe('getArmorOrSheild', function() {
// ;
// });
describe('getArmorOrSheild', function() {
it('should get an armor or shield', function() {
var item = grimoire.getArmorOrShield('medium');
expect(item.itemType).toBe('Armor and Shields');
});
});
describe('getAlignment', function() {
it('should get an Alignment', function() {