2016-08-11 09:58:38 +03:00
|
|
|
/* jshint expr:true */
|
|
|
|
import {expect} from 'chai';
|
2016-11-24 01:50:57 +03:00
|
|
|
import {describe, it} from 'mocha';
|
|
|
|
import {setupComponentTest} from 'ember-mocha';
|
2016-08-11 09:58:38 +03:00
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
describe('Integration: Component: gh-task-button', function() {
|
|
|
|
setupComponentTest('gh-task-button', {
|
2016-08-11 09:58:38 +03:00
|
|
|
integration: true
|
2016-11-24 01:50:57 +03:00
|
|
|
});
|
2016-08-11 09:58:38 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
it('renders', function () {
|
|
|
|
this.render(hbs`{{#gh-task-button}}Test{{/gh-task-button}}`);
|
|
|
|
expect(this.$()).to.have.length(1);
|
|
|
|
expect(this.$().text().trim()).to.equal('Test');
|
|
|
|
});
|
|
|
|
|
|
|
|
// TODO: figure out how to test concurrency behavior
|
|
|
|
});
|