Adjusted test for new way to do countMounts function

This commit is contained in:
Blade Barringer 2015-01-01 17:13:48 -06:00
parent fb25848035
commit 3cd295195a

View file

@ -652,14 +652,14 @@ describe 'Helper', ->
expect(shared.countMounts(null, mounts)).to.eql 0
expect(shared.countMounts(1, mounts)).to.eql 1
mounts = { "Dragon-Red": 1, "Wolf-Base": 2 }
mounts = { "Dragon-Red": true, "Wolf-Base": true }
expect(shared.countMounts(null, mounts)).to.eql 2
expect(shared.countMounts(2, mounts)).to.eql 2
mounts = { "Dragon-Red": 1, "Gryphon-Base": 1 }
expect(shared.countMounts(null, mounts)).to.eql 2
expect(shared.countMounts(_.size(mounts), mounts)).to.eql 2
mounts = { "Wolf-Base": 2, "BearCub-Polar": 1}
mounts = { "Dragon-Red": true, "Gryphon-Base": true }
expect(shared.countMounts(null, mounts)).to.eql 1
expect(shared.countMounts(_.size(mounts), mounts)).to.eql 1
mounts = { "Wolf-Base": true, "BearCub-Polar": true}
expect(shared.countMounts(null, mounts)).to.eql 1
expect(shared.countMounts(_.size(mounts), mounts)).to.eql 1