mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
Generalize sorting through SortOptions service
This commit is contained in:
committed by
Maikel Linke
parent
8b6b694244
commit
55d0b1dfc5
@@ -0,0 +1,15 @@
|
||||
describe "SortOptions service", ->
|
||||
SortOptions = null
|
||||
|
||||
beforeEach ->
|
||||
module 'admin.indexUtils'
|
||||
inject (_SortOptions_) ->
|
||||
SortOptions = _SortOptions_
|
||||
|
||||
describe "initialising predicate", ->
|
||||
it "sets predicate to blank", ->
|
||||
expect(SortOptions.predicate).toEqual ""
|
||||
|
||||
describe "initialising reverse", ->
|
||||
it "sets reverse to true", ->
|
||||
expect(SortOptions.reverse).toBe true
|
||||
Reference in New Issue
Block a user