Make clear filters fetch products automatically without filters

The spec change is needed: fetchProducts() makes cleared filters values undefined in removeClearedValues.
This commit is contained in:
jeffrey s hill md
2020-04-10 15:41:40 -05:00
committed by Luis Ramos
parent ca458018ca
commit c4e910a7c8
2 changed files with 3 additions and 2 deletions

View File

@@ -903,8 +903,8 @@ describe "AdminProductEditCtrl", ->
$scope.categoryFilter = "6"
$scope.resetSelectFilters()
expect($scope.query).toBe ""
expect($scope.producerFilter).toBe "0"
expect($scope.categoryFilter).toBe "0"
expect($scope.producerFilter).toBeUndefined
expect($scope.categoryFilter).toBeUndefined
describe "converting arrays of objects with ids to an object with ids as keys", ->