mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
add test for priority values
This commit is contained in:
parent
48393637fc
commit
b5fefc2664
1 changed files with 7 additions and 0 deletions
|
|
@ -332,3 +332,10 @@ describe 'Helper', ->
|
|||
expect(algos.tnl 10).to.eql 260
|
||||
expect(algos.tnl 99).to.eql 3580
|
||||
expect(algos.tnl 100).to.eql 0
|
||||
|
||||
it 'calculates priority values', ->
|
||||
expect(algos.priorityValue()).to.eql 1
|
||||
expect(algos.priorityValue '!').to.eql 1
|
||||
expect(algos.priorityValue '!!').to.eql 1.5
|
||||
expect(algos.priorityValue '!!!').to.eql 2
|
||||
expect(algos.priorityValue '!!!!').to.eql 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue