mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
Cleanup tests and add assertions that all deprecated tests log warnings, and all non deprecated tests don't.
16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
var expect = require("chai").expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var component = helpers.mount(require.resolve("./index"), {
|
|
size: "large",
|
|
label: "Initial Label"
|
|
});
|
|
|
|
expect(component.el.className).to.contain("large");
|
|
|
|
component.setSize("small");
|
|
component.update();
|
|
|
|
expect(component.el.className).to.contain("small");
|
|
};
|