mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
Remove TagRule::DiscountOrder
This class was removed from the UI in 2016 and hasn't been used since...
This commit is contained in:
@@ -25,11 +25,11 @@ describe "TagRulesCtrl", ->
|
||||
|
||||
describe "adding a new tag group", ->
|
||||
beforeEach ->
|
||||
scope.addNewRuleTo(scope.tagGroups[0], "DiscountOrder")
|
||||
scope.addNewRuleTo(scope.tagGroups[0], "FilterOrderCycles")
|
||||
|
||||
it "adds a new rule of the specified type to the rules array for the tagGroup", ->
|
||||
expect(scope.tagGroups[0].rules.length).toEqual 3
|
||||
expect(scope.tagGroups[0].rules[2].type).toEqual "TagRule::DiscountOrder"
|
||||
expect(scope.tagGroups[0].rules[2].type).toEqual "TagRule::FilterOrderCycles"
|
||||
|
||||
it "updates tagGroup start indices", ->
|
||||
expect(scope.tagGroups[0].startIndex).toEqual 1
|
||||
|
||||
Reference in New Issue
Block a user