Create shared services module for backend angularjs, rename modules

This commit is contained in:
Rob H
2014-01-17 13:48:28 +08:00
parent 970942ff42
commit c6d9bfafbc
7 changed files with 36 additions and 35 deletions

View File

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

View File

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