mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-20 00:37:26 +00:00
Make 'Clear All' button work on order cycle page
This commit is contained in:
@@ -72,3 +72,13 @@ describe "OrderCyclesCtrl", ->
|
||||
|
||||
it "the RequestMonitor will not longer have a state of loading", ->
|
||||
expect(scope.RequestMonitor.loading).toBe false
|
||||
|
||||
describe "filtering order cycles", ->
|
||||
it "filters by and resets filter variables", ->
|
||||
scope.query = "test"
|
||||
scope.scheduleFilter = 1
|
||||
scope.involvingFilter = 1
|
||||
scope.resetSelectFilters()
|
||||
expect(scope.query).toBe ""
|
||||
expect(scope.scheduleFilter).toBe 0
|
||||
expect(scope.involvingFilter).toBe 0
|
||||
Reference in New Issue
Block a user