mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Order cycle simple create controller uses 'new' method on OC service to initialise
This commit is contained in:
@@ -9,14 +9,18 @@ describe "AdminSimpleCreateOrderCycleCtrl", ->
|
||||
|
||||
beforeEach ->
|
||||
scope = {}
|
||||
order_cycle =
|
||||
coordinator_id: 123
|
||||
incoming_exchanges: [incoming_exchange]
|
||||
outgoing_exchanges: [outgoing_exchange]
|
||||
OrderCycle =
|
||||
order_cycle:
|
||||
incoming_exchanges: [incoming_exchange]
|
||||
outgoing_exchanges: [outgoing_exchange]
|
||||
order_cycle: order_cycle
|
||||
addSupplier: jasmine.createSpy()
|
||||
addDistributor: jasmine.createSpy()
|
||||
setExchangeVariants: jasmine.createSpy()
|
||||
new: jasmine.createSpy().andReturn order_cycle
|
||||
Enterprise =
|
||||
get: jasmine.createSpy().andReturn {id: 123}
|
||||
index: jasmine.createSpy()
|
||||
suppliedVariants: jasmine.createSpy().andReturn('supplied variants')
|
||||
EnterpriseFee =
|
||||
|
||||
Reference in New Issue
Block a user