mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Adjusted test for new way to do countMounts function
This commit is contained in:
parent
fb25848035
commit
3cd295195a
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue