mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Brand story can be expanded and contracted
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user