mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Merge pull request #2821 from nikobozi/oc-clear-filter
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