beforeEach(() => { model = new Property({ type: 'stack', property: propName, properties }); view = new PropertyStackView({ model, propTarget: target }); fixtures.innerHTML = ''; view.render(); fixtures.appendChild(view.el); model.get('layers').add(layers); });
beforeEach(() => { em = new Editor({}); dcomp = new DomComponents(); compOpts = { em, componentTypes: dcomp.componentTypes }; target = new Component({}, compOpts); component = new Component({}, compOpts); target.model = component; model = new Property({ type: 'stack', property: propName, properties }); view = new PropertyStackView({ model }); document.body.innerHTML = '<div id="fixtures"></div>'; fixtures = document.body.firstChild; view.render(); fixtures.appendChild(view.el); });