mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
fix(tests): for i18n on quests
This commit is contained in:
parent
6e94332b08
commit
ef06a2a9c6
1 changed files with 5 additions and 5 deletions
|
|
@ -304,21 +304,21 @@ describe 'User', ->
|
|||
|
||||
describe 'Quests', ->
|
||||
_.each shared.content.quests, (quest)->
|
||||
it "#{quest.text} has valid values", ->
|
||||
expect(quest.notes).to.be.an('string')
|
||||
expect(quest.completion).to.be.an('string') if quest.completion
|
||||
it "#{quest.text()} has valid values", ->
|
||||
expect(quest.notes()).to.be.an('string')
|
||||
expect(quest.completion()).to.be.an('string') if quest.completion
|
||||
expect(quest.previous).to.be.an('string') if quest.previous
|
||||
expect(quest.value).to.be.greaterThan 0
|
||||
expect(quest.drop.gp).to.not.be.lessThan 0
|
||||
expect(quest.drop.exp).to.not.be.lessThan 0
|
||||
expect(quest.drop.items).to.be.an(Array)
|
||||
if quest.boss
|
||||
expect(quest.boss.name).to.be.an('string')
|
||||
expect(quest.boss.name()).to.be.an('string')
|
||||
expect(quest.boss.hp).to.be.greaterThan 0
|
||||
expect(quest.boss.str).to.be.greaterThan 0
|
||||
else if quest.collect
|
||||
_.each quest.collect, (collect)->
|
||||
expect(collect.text).to.be.an('string')
|
||||
expect(collect.text()).to.be.an('string')
|
||||
expect(collect.count).to.be.greaterThan 0
|
||||
|
||||
describe 'Achievements', ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue