mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Create angularjs admin module
This commit is contained in:
@@ -2,7 +2,7 @@ describe "AdminOrderMgmtCtrl", ->
|
||||
ctrl = scope = httpBackend = null
|
||||
|
||||
beforeEach ->
|
||||
module "ofn.bulk_order_management"
|
||||
module "ofn.admin"
|
||||
beforeEach inject(($controller, $rootScope, $httpBackend) ->
|
||||
scope = $rootScope.$new()
|
||||
ctrl = $controller
|
||||
@@ -377,7 +377,7 @@ describe "managing pending changes", ->
|
||||
}
|
||||
|
||||
beforeEach ->
|
||||
module "ofn.bulk_order_management", ($provide) ->
|
||||
module "ofn.admin", ($provide) ->
|
||||
$provide.value 'dataSubmitter', dataSubmitter
|
||||
return
|
||||
|
||||
@@ -511,7 +511,7 @@ describe "dataSubmitter service", ->
|
||||
switchClassSpy = jasmine.createSpy('switchClass')
|
||||
|
||||
beforeEach ->
|
||||
module "ofn.bulk_order_management" , ($provide) ->
|
||||
module "ofn.admin" , ($provide) ->
|
||||
$provide.value '$q', qMock
|
||||
$provide.value '$http', httpMock
|
||||
$provide.value 'switchClass', switchClassSpy
|
||||
@@ -557,7 +557,7 @@ describe "switchClass service", ->
|
||||
timeoutMock.cancel = jasmine.createSpy('timeout.cancel')
|
||||
|
||||
beforeEach ->
|
||||
module "ofn.bulk_order_management" , ($provide) ->
|
||||
module "ofn.admin" , ($provide) ->
|
||||
$provide.value '$timeout', timeoutMock
|
||||
return
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ describe "filtering products for submission to database", ->
|
||||
describe "Maintaining a live record of dirty products and properties", ->
|
||||
parse = null
|
||||
beforeEach ->
|
||||
module "ofn.bulk_product_edit"
|
||||
module "ofn.admin"
|
||||
beforeEach inject(($parse) ->
|
||||
parse = $parse
|
||||
)
|
||||
@@ -296,7 +296,7 @@ describe "AdminProductEditCtrl", ->
|
||||
ctrl = scope = timeout = httpBackend = null
|
||||
|
||||
beforeEach ->
|
||||
module "ofn.bulk_product_edit"
|
||||
module "ofn.admin"
|
||||
beforeEach inject(($controller, $timeout, $rootScope, $httpBackend) ->
|
||||
scope = $rootScope.$new()
|
||||
ctrl = $controller
|
||||
@@ -1415,7 +1415,7 @@ describe "Taxons service", ->
|
||||
Taxons = $httpBackend = $resource = null
|
||||
|
||||
beforeEach ->
|
||||
module "ofn.bulk_product_edit"
|
||||
module "ofn.admin"
|
||||
|
||||
beforeEach inject (_Taxons_, _$resource_, _$httpBackend_) ->
|
||||
Taxons = _Taxons_
|
||||
|
||||
Reference in New Issue
Block a user