mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
14 lines
338 B
JavaScript
14 lines
338 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var component = helpers.mount(require('./index.marko'), {
|
|
value: 1
|
|
});
|
|
|
|
expect(component.getEl('input').value).to.equal('1');
|
|
|
|
component.state.value = 0;
|
|
component.update();
|
|
|
|
expect(component.getEl('input').value).to.equal('0');
|
|
}; |