From 275cb7edd2378886b89d5521db31d043ab8d6eab Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Mon, 3 Oct 2016 19:47:04 +0200 Subject: [PATCH] Cleaning up $anchors after tests. --- test/javascript/components/reveal.js | 6 ++++++ 1 file changed, 6 insertions(+) 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'); -- 2.47.2