mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
16 lines
392 B
JavaScript
16 lines
392 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function (helpers) {
|
|
var component = helpers.mount(require('./index'), {});
|
|
|
|
var children;
|
|
|
|
children = component.getEl('root').children;
|
|
expect(children.length).to.equal(3);
|
|
|
|
component.state.count++;
|
|
component.update();
|
|
|
|
children = component.getEl('root').children;
|
|
expect(children.length).to.equal(2);
|
|
}; |