Display variant overrides

This commit is contained in:
Rohan Mitchell
2014-11-27 11:45:49 +11:00
parent 8baed4429c
commit 3aedbb6c48
5 changed files with 40 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ describe "OverrideVariantsCtrl", ->
producers = [{id: 2, name: 'Producer'}]
products = [{id: 1, name: 'Product'}]
hubPermissions = {}
variantOverrides = {}
beforeEach ->
module 'ofn.admin'
@@ -14,7 +15,7 @@ describe "OverrideVariantsCtrl", ->
scope = {}
inject ($controller, Indexer) ->
ctrl = $controller 'AdminOverrideVariantsCtrl', {$scope: scope, Indexer: Indexer, hubs: hubs, producers: producers, products: products, hubPermissions: hubPermissions}
ctrl = $controller 'AdminOverrideVariantsCtrl', {$scope: scope, Indexer: Indexer, hubs: hubs, producers: producers, products: products, hubPermissions: hubPermissions, variantOverrides: variantOverrides}
it "initialises the hub list and the chosen hub", ->
expect(scope.hubs).toEqual hubs