Brand story can be expanded and contracted

This commit is contained in:
Rohan Mitchell
2015-05-06 11:16:18 +10:00
parent abee9c8198
commit e662aab004
4 changed files with 46 additions and 24 deletions

View File

@@ -0,0 +1,19 @@
describe "HomeCtrl", ->
ctrl = null
scope = null
beforeEach ->
module 'Darkswarm'
scope = {}
inject ($controller) ->
ctrl = $controller 'HomeCtrl', {$scope: scope}
it "starts with the brand story contracted", ->
expect(scope.brandStoryExpanded).toBe false
it "toggles the brand story", ->
scope.toggleBrandStory()
expect(scope.brandStoryExpanded).toBe true
scope.toggleBrandStory()
expect(scope.brandStoryExpanded).toBe false