Create angularjs admin module

This commit is contained in:
Rob H
2014-05-02 15:56:20 +10:00
parent ceada3596b
commit 5a2a43a060
6 changed files with 33 additions and 51 deletions

View File

@@ -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

View File

@@ -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_