diff --git a/lms/static/coffee/spec/navigation_spec.coffee b/lms/static/coffee/spec/navigation_spec.coffee index cb98c2b64c..1340984e52 100644 --- a/lms/static/coffee/spec/navigation_spec.coffee +++ b/lms/static/coffee/spec/navigation_spec.coffee @@ -16,6 +16,7 @@ describe 'Navigation', -> active: 1 header: 'h3' autoHeight: false + heightStyle: 'content' describe 'when there is no active section', -> beforeEach -> @@ -23,11 +24,12 @@ describe 'Navigation', -> $('#accordion').append('') new Navigation - it 'activate the accordian with section 1 as active', -> + it 'activate the accordian with no section as active', -> expect($('#accordion').accordion).toHaveBeenCalledWith - active: 1 + active: 0 header: 'h3' autoHeight: false + heightStyle: 'content' it 'binds the accordionchange event', -> Navigation.bind()