Created
January 19, 2016 21:05
-
-
Save davidwallacejackson/1804be2b12fae7e6e08a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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