]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update targets for unit tests
authorKevin Ball <kmball11@gmail.com>
Mon, 18 Sep 2017 18:32:50 +0000 (11:32 -0700)
committerKevin Ball <kmball11@gmail.com>
Mon, 18 Sep 2017 18:32:50 +0000 (11:32 -0700)
test/javascript/components/reveal.js

index 58d2b74fbf75e749d7cd6ecd04958ea372f5ab21..23908548bfd7dc69324fec58a1a234df674b23d0 100644 (file)
@@ -105,7 +105,7 @@ describe('Reveal', function() {
       plugin = new Foundation.Reveal($html, {});
 
       $html.on('open.zf.reveal', function() {
-        $('body').should.have.class('is-reveal-open');
+        $('html').should.have.class('is-reveal-open');
         done();
       });
 
@@ -220,7 +220,7 @@ describe('Reveal', function() {
 
 
       $html.on('closed.zf.reveal', function() {
-        $('body').should.not.have.class('is-reveal-open');
+        $('html').should.not.have.class('is-reveal-open');
         done();
       });
 
@@ -240,7 +240,7 @@ describe('Reveal', function() {
 
       $html.on('closed.zf.reveal', function() {
 
-        $('body').should.have.class('is-reveal-open');
+        $('html').should.have.class('is-reveal-open');
         plugin2.destroy();
         $html2.remove();
         done();