mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-25 01:23:23 +00:00
When cart clear is declined, revert order cycle selection change
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
describe 'OrderCycleCtrl', ->
|
||||
ctrl = null
|
||||
scope = null
|
||||
event = null
|
||||
product_ctrl = null
|
||||
OrderCycle = null
|
||||
|
||||
beforeEach ->
|
||||
module 'Darkswarm'
|
||||
scope = {}
|
||||
OrderCycle =
|
||||
order_cycle: "test"
|
||||
OrderCycle =
|
||||
order_cycle:
|
||||
id: 123
|
||||
inject ($controller) ->
|
||||
scope = {}
|
||||
ctrl = $controller 'OrderCycleCtrl', {$scope: scope, OrderCycle: OrderCycle}
|
||||
|
||||
it "puts the order cycle in scope", ->
|
||||
expect(scope.order_cycle).toEqual "test"
|
||||
|
||||
expect(scope.order_cycle).toEqual {id: 123}
|
||||
|
||||
Reference in New Issue
Block a user