});
describe('up()', function() {
- it('closes the targeted submenu', function() {
+ it('closes the targeted submenu', function(done) {
$html = $(template).appendTo('body');
plugin = new Foundation.AccordionMenu($html);
plugin.down($html.find('.is-accordion-submenu').eq(0));
plugin.up($html.find('.is-accordion-submenu').eq(0));
- $html.find('.is-accordion-submenu').eq(0).should.be.hidden;
+ setTimeout(() => {
+ $html.find('.is-accordion-submenu').eq(0).should.be.hidden;
+ done();
+ }, 1);
});
it('toggles attributes of title of the targeted container', function() {
});
});
-});
\ No newline at end of file
+});