From: Marius Olbertz Date: Mon, 3 Oct 2016 17:47:04 +0000 (+0200) Subject: Cleaning up $anchors after tests. X-Git-Tag: v6.3-rc1~26^2~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=275cb7edd2378886b89d5521db31d043ab8d6eab;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Cleaning up $anchors after tests. --- diff --git a/test/javascript/components/reveal.js b/test/javascript/components/reveal.js index afec91fdd..802d9ed62 100644 --- a/test/javascript/components/reveal.js +++ b/test/javascript/components/reveal.js @@ -38,6 +38,8 @@ describe('Reveal', function() { plugin = new Foundation.Reveal($html, {}); plugin.$anchor[0].should.be.equal($anchor[0]); + + $anchor.remove(); }); it('sets ARIA attributes for anchor if one exists', function() { @@ -47,6 +49,8 @@ describe('Reveal', function() { $anchor.should.have.attr('aria-haspopup', 'true'); $anchor.should.have.attr('aria-controls', $html.attr('id')); + + $anchor.remove(); }); }); @@ -218,6 +222,8 @@ describe('Reveal', function() { $anchor.trigger('click'); plugin.$overlay.should.be.visible; + + $anchor.remove(); }); it('closes a modal on overlay click if closeOnClick option is true', function() { $html = $(template).appendTo('body');