mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-14 23:47:48 +00:00
Create shared services module for backend angularjs, rename modules
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
describe "AdminBulkOrdersCtrl", ->
|
||||
ctrl = scope = timeout = httpBackend = null
|
||||
describe "AdminOrderMgmtCtrl", ->
|
||||
ctrl = scope = httpBackend = null
|
||||
|
||||
beforeEach ->
|
||||
module "bulk_order_management"
|
||||
module "ofn.bulk_order_management"
|
||||
beforeEach inject(($controller, $rootScope, $httpBackend) ->
|
||||
scope = $rootScope.$new()
|
||||
ctrl = $controller
|
||||
httpBackend = $httpBackend
|
||||
|
||||
ctrl "AdminBulkOrdersCtrl", {$scope: scope, $timeout: timeout}
|
||||
ctrl "AdminOrderMgmtCtrl", {$scope: scope}
|
||||
)
|
||||
|
||||
describe "loading data upon initialisation", ->
|
||||
|
||||
@@ -258,18 +258,18 @@ describe "Maintaining a live record of dirty products and properties", ->
|
||||
|
||||
|
||||
|
||||
describe "AdminBulkProductsCtrl", ->
|
||||
describe "AdminProductEditCtrl", ->
|
||||
ctrl = scope = timeout = httpBackend = null
|
||||
|
||||
beforeEach ->
|
||||
module "bulk_product_update"
|
||||
module "ofn.bulk_product_edit"
|
||||
beforeEach inject(($controller, $timeout, $rootScope, $httpBackend) ->
|
||||
scope = $rootScope.$new()
|
||||
ctrl = $controller
|
||||
timeout = $timeout
|
||||
httpBackend = $httpBackend
|
||||
|
||||
ctrl "AdminBulkProductsCtrl", {$scope: scope, $timeout: timeout}
|
||||
ctrl "AdminProductEditCtrl", {$scope: scope, $timeout: timeout}
|
||||
)
|
||||
|
||||
describe "loading data upon initialisation", ->
|
||||
|
||||
Reference in New Issue
Block a user