From a168c0d506523475d5936c93c6c16531acc9cfac Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Thu, 29 Sep 2016 21:58:50 +0200 Subject: [PATCH] Adjusted test case for up(). --- test/javascript/components/accordion.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/javascript/components/accordion.js b/test/javascript/components/accordion.js index 83c44c9d3..c4837c5e3 100644 --- a/test/javascript/components/accordion.js +++ b/test/javascript/components/accordion.js @@ -55,11 +55,11 @@ describe('Accordion', function() { it('toggles attributes of title of the targeted container', function() { $html = $(template).appendTo('body'); - plugin = new Foundation.Accordion($html, {}); + plugin = new Foundation.Accordion($html, {allowAllClosed: true}); - plugin.up($html.find('.accordion-content').eq(1)); - $html.find('.accordion-title').eq(1).should.have.attr('aria-expanded', 'false'); - $html.find('.accordion-title').eq(1).should.have.attr('aria-selected', 'false'); + plugin.up($html.find('.accordion-content').eq(0)); + $html.find('.accordion-title').eq(0).should.have.attr('aria-expanded', 'false'); + $html.find('.accordion-title').eq(0).should.have.attr('aria-selected', 'false'); }); it('not closes the open container if allowAllClosed is false', function() { -- 2.47.2