mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 04:08:54 +00:00
fix(tests): put honey last in food items def, seems to fix the mocked
random function looking for honey. @djuretic any ideas?
This commit is contained in:
parent
949386f44f
commit
d721644f15
1 changed files with 3 additions and 1 deletions
|
|
@ -538,7 +538,6 @@ api.food =
|
|||
RottenMeat: text: 'Rotten Meat', target: 'Zombie', article: ''
|
||||
CottonCandyPink: text: 'Pink Cotton Candy', target: 'CottonCandyPink', article: ''
|
||||
CottonCandyBlue: text: 'Blue Cotton Candy', target: 'CottonCandyBlue', article: ''
|
||||
Honey: text: 'Honey', target: 'Golden', article: ''
|
||||
# FIXME what to do with these extra items? Should we add "targets" (plural) for food instead of singular, so we don't have awkward extras?
|
||||
#Cheese: text: 'Cheese', target: 'Golden'
|
||||
#Watermelon: text: 'Watermelon', target: 'Golden'
|
||||
|
|
@ -555,6 +554,9 @@ api.food =
|
|||
Cake_Desert: canBuy: false, text: 'Sand Cake', target: 'Desert', article: ''
|
||||
Cake_Red: canBuy: false, text: 'Strawberry Cake', target: 'Red', article: ''
|
||||
|
||||
# Tests hack, put honey last so the faux random picks it up in unit tests
|
||||
Honey: text: 'Honey', target: 'Golden', article: ''
|
||||
|
||||
Saddle: text: 'Saddle', value: 5, notes: 'Instantly raises your pet into a mount.'
|
||||
_.each api.food, (food,key) ->
|
||||
_.defaults food, {value: 1, key, notes: "Feed this to a pet and it may grow into a sturdy steed.", canBuy:true}
|
||||
|
|
|
|||
Loading…
Reference in a new issue