mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
18 lines
460 B
JavaScript
18 lines
460 B
JavaScript
var expect = require("chai").expect;
|
|
|
|
module.exports = function (helpers, done) {
|
|
var component = helpers.mount(require.resolve("./index.marko"), {
|
|
size: "large",
|
|
label: "Initial Label",
|
|
});
|
|
|
|
component.onUpdate = function () {
|
|
expect(component.el.className).to.contain("small");
|
|
done();
|
|
};
|
|
|
|
expect(component.el.className).to.contain("large");
|
|
component.setSize("small");
|
|
expect(component.el.className).to.not.contain("small");
|
|
};
|