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();
});
$html.on('closed.zf.reveal', function() {
- $('body').should.not.have.class('is-reveal-open');
+ $('html').should.not.have.class('is-reveal-open');
done();
});
$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();