# \[solved\] Testing \<compose\>

**URL:** <https://discourse.aurelia.io/t/solved-testing-compose/3404>\
**Category:** Help Requests\
**Created:** [April 18, 2020, 8:00pm UTC](https://discourse.aurelia.io/t/solved-testing-compose/3404 "2020-04-18T20:00:52Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Sayan751](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sayan751/32/1861_2.png) [@Sayan751](https://discourse.aurelia.io/u/Sayan751)\
**Post date:** [April 24, 2020, 7:49pm UTC](https://discourse.aurelia.io/t/solved-testing-compose/3404/10 "2020-04-24T19:49:44Z")

</div>

@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`):

```diff
    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>`)

```

---

_[View the full topic](https://discourse.aurelia.io/t/solved-testing-compose/3404)._
