var expect = require('chai').expect;

module.exports = function(helpers) {
    var widget = helpers.mount(require('./index'), {});

    expect(widget.getWidget('bar') == null).to.equal(false);

    widget.getWidget('bar').destroy();

    expect(widget.getWidget('bar') == null).to.equal(true);
};