From: Nicolas Coden Date: Fri, 27 Apr 2018 22:01:10 +0000 (+0200) Subject: chore: clean component after Toggler tests X-Git-Tag: v6.6.0~3^2~219^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=814d2e55f;p=thirdparty%2Ffoundation%2Ffoundation-sites.git chore: clean component after Toggler tests --- diff --git a/test/javascript/components/toggler.js b/test/javascript/components/toggler.js index 7d9010795..84a82a297 100644 --- a/test/javascript/components/toggler.js +++ b/test/javascript/components/toggler.js @@ -54,7 +54,6 @@ describe('Toggler', function() { plugin = new Foundation.Toggler($html, {}); $triggers.find('[data-open], [data-close], [data-toggle]').should.have.attr('aria-controls', 'toggler'); - $triggers.remove(); }); @@ -64,6 +63,7 @@ describe('Toggler', function() { plugin = new Foundation.Toggler($html, {}); $triggers.find('[data-open], [data-close], [data-toggle]').should.have.attr('aria-expanded', 'true'); + $triggers.remove(); }); it('sets aria-expanded to false if the element is invisible', function() { @@ -73,6 +73,7 @@ describe('Toggler', function() { plugin = new Foundation.Toggler($html, {}); $triggers.find('[data-open], [data-close], [data-toggle]').should.have.attr('aria-expanded', 'false'); + $triggers.remove(); $css.remove(); }); }); @@ -104,6 +105,8 @@ describe('Toggler', function() { plugin._toggleClass(); $triggers.find('[data-open], [data-close], [data-toggle]').should.have.attr('aria-expanded', 'false'); + + $triggers.remove(); }); });