Skip to content

Instantly share code, notes, and snippets.

@davidwallacejackson
Created January 19, 2016 21:05
Show Gist options
  • Save davidwallacejackson/1804be2b12fae7e6e08a to your computer and use it in GitHub Desktop.
Save davidwallacejackson/1804be2b12fae7e6e08a to your computer and use it in GitHub Desktop.
const template = hbs`{{my-component)}}`;
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });" + EOL + EOL +
this.render(template);
// assert.equal(this.$('ul.selected-operators li').length, 1);
this.$('.search').val('more');
assert.equal(this.$('.testquery').text(), 'more');
});
<span class="testquery">{{searchQuery}}</span>
{{input
class='search'
value=searchQuery}}
import Ember from 'ember';
export default Ember.Component.extend(
{
searchQuery: 'foobar'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment