Replace Angular expand/collapse with native HTML details/summary for brand story

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Pavel
2026-02-19 21:23:09 +00:00
parent f86eb3fb82
commit b528bb47a0
5 changed files with 65 additions and 44 deletions

View File

@@ -1,19 +0,0 @@
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