Quantcast
Viewing all articles
Browse latest Browse all 4826

Integration Testing components

@tsatsmt wrote:

I have a component text-console that I am trying to create an integration test for. Ember v 1.13.8

Usage: {{text-console content=message.title}}

hbs:

{{content.text}}

How can I pass the message.title.

Here is the model {message: { title: { text: 'message text' } }}

When running this.set I get a message saying this.set is not defined

this.set('message.title', {text: 'sample message text'});
or this.set('content', message) where message = {title: {text: 'some message'}}

Thanks for help.

this.render(hbs {{text-console content=message.title}} );

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles