it('should update when content attribute change', function(done) { tooltip = new Tooltip().render(); tooltip.content = 'content'; async.nextTick(function() { assert.strictEqual('content', tooltip.element.innerHTML); done(); }); });
it('should change visibility when close icon is clicked', function(done) { var component = new Boilerplate().render(); dom.triggerEvent(component.element.querySelector('.close'), 'click'); async.nextTick(function() { assert.ok(!component.visible); component.dispose(); done(); }); });
it('should change visibility when visible attribute changes', function(done) { var component = new Boilerplate().render(); component.visible = false; async.nextTick(function() { assert.ok(!component.visible); component.dispose(); done(); }); });