From: Marius Olbertz Date: Thu, 29 Sep 2016 19:58:50 +0000 (+0200) Subject: Adjusted test case for up(). X-Git-Tag: v6.2.4-rc1~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9212%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Adjusted test case for up(). --- 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() {