mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var widget = helpers.mount(require('./index'), {
|
|
includeWidget: false
|
|
});
|
|
|
|
expect(widget).to.equal(undefined);
|
|
|
|
expect(helpers.targetEl.innerHTML).contain('[app-conditional-widget]');
|
|
|
|
widget = helpers.mount(require('./index'), {
|
|
includeWidget: true
|
|
});
|
|
|
|
expect(widget != null).to.equal(true);
|
|
}; |