mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
316 B
JavaScript
16 lines
316 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var component = helpers.mount(require('./index'), {
|
|
label: 'Foo'
|
|
});
|
|
|
|
var oldId = component.id;
|
|
|
|
component.input = {
|
|
label: 'Bar'
|
|
};
|
|
component.update();
|
|
|
|
expect(component.el.id).to.equal(oldId);
|
|
}; |