Pulling headings out of enterprise form partials, displaying each conditionally

This commit is contained in:
Rob Harrington
2014-11-28 12:39:24 +11:00
parent d8349bc037
commit f86d4a1996
9 changed files with 232 additions and 226 deletions

View File

@@ -28,7 +28,7 @@ describe "menuCtrl", ->
it "sets the item list", ->
expect(SideMenu.setItems).toHaveBeenCalled
expect(scope.menu).toBe SideMenu.items
expect(scope.menu.items).toBe SideMenu.items
it "sets the initally selected value", ->
expect(SideMenu.select).toHaveBeenCalledWith 0
@@ -38,4 +38,4 @@ describe "menuCtrl", ->
it "selects an item by performing setting the selected property on the item to true", ->
scope.select 4
expect(SideMenu.select).toHaveBeenCalledWith 4
expect(scope.menu[4].selected).toBe true
expect(scope.menu.items[4].selected).toBe true