Skip to content

Instantly share code, notes, and snippets.

@rondale-sc
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save rondale-sc/c93f187d5fc4cf1b9031 to your computer and use it in GitHub Desktop.

Select an option

Save rondale-sc/c93f187d5fc4cf1b9031 to your computer and use it in GitHub Desktop.
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('play-pause-toggle', 'Integration | Component | play pause toggle', {
integration: true
});
test('it renders', function(assert) {
assert.expect(2);
this.on('foo', function() {
assert.ok(true);
});
this.on('bar', function() {
assert.ok(true);
});
this.render(hbs`{{play-pause-toggle play=(action 'foo') pause=(action 'bar')}}`);
Ember.run(() => {
this.$('.controls').click();
this.$('.controls').click();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment