Make 'Clear All' button work on order cycle page

This commit is contained in:
niko
2018-10-04 11:46:38 +02:00
parent aa78b9e54c
commit f99ed81863
2 changed files with 16 additions and 2 deletions

View File

@@ -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