]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Cleaning up $anchors after tests. 9226/head
authorMarius Olbertz <marius.olbertz@gmail.com>
Mon, 3 Oct 2016 17:47:04 +0000 (19:47 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Mon, 3 Oct 2016 17:47:04 +0000 (19:47 +0200)
test/javascript/components/reveal.js

index afec91fddf96956082fe5090619116577fe3847a..802d9ed62b61e346f27acc24a5de626bb96b0398 100644 (file)
@@ -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');