mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-21 11:14:14 +00:00
fix(tests): add in freeRebirth
Really, I should fix this more systematically, but I think this should fix the tests for the moment, which is badly needed.
This commit is contained in:
parent
5181b046b4
commit
931525df0b
1 changed files with 4 additions and 1 deletions
|
|
@ -499,7 +499,10 @@ describe 'Cron', ->
|
|||
task due days, user custom day start, timezoneOffset, etc - then runs cron, jumps to tomorrow and runs cron,
|
||||
and so on - testing each possible outcome along the way
|
||||
###
|
||||
|
||||
|
||||
# this is hacky but should fix things for the moment
|
||||
user.flags.freeRebirth = true
|
||||
|
||||
runCron = (options) ->
|
||||
_.each [480, 240, 0, -120], (timezoneOffset) -> # test different timezones
|
||||
now = shared.startOfWeek({timezoneOffset}).add('hours', options.currentHour||0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue