mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
Added test for valid spell targets
This commit is contained in:
parent
9b01ea5072
commit
bbddb5f87d
1 changed files with 6 additions and 0 deletions
|
|
@ -202,6 +202,12 @@ describe 'User', ->
|
|||
expect(user.items.gear.equipped).to.eql { armor: 'armor_base_0', weapon: 'weapon_base_0', head: 'head_base_0', shield: 'shield_base_0' }
|
||||
expect(user.stats.gp).to.eql 1
|
||||
|
||||
describe 'spells', ->
|
||||
_.each shared.content.spells, (spellClass)->
|
||||
_.each spellClass, (spell)->
|
||||
it "#{spell.text} have a valid target", ->
|
||||
expect(spell.target).to.match(/^(task|self|party|user)$/)
|
||||
|
||||
describe 'drop system', ->
|
||||
user = null
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue