[solved] Testing <compose>

@LetsZiggy As you need to test your component, you need to change your inView template. Also as the “model” for the component will be bound via the component.viewModel.activate method, you can also drop the .boundTo. In summary the changes look as follows (from your compose-elem.spec.js):

    component = StageComponent
      .withResources("elements/compose-elem")
-     .inView(`
-      <compose
-        view-model="elements/compose-elem"
-        model.bind="model">
-      </compose>
-     `)
-     .boundTo({ model: "new data" })
+     .inView(`<compose-elem></compose-elem>`)
1 Like