From: Kevin Ball Date: Mon, 18 Sep 2017 18:32:50 +0000 (-0700) Subject: Update targets for unit tests X-Git-Tag: v6.4.4-rc1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dea29b794f4ddcabb87760a5bf032929ebf8596d;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update targets for unit tests --- diff --git a/test/javascript/components/reveal.js b/test/javascript/components/reveal.js index 58d2b74fb..23908548b 100644 --- a/test/javascript/components/reveal.js +++ b/test/javascript/components/reveal.js @@ -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();