Ghost/ghost/admin/tests/integration/components/gh-task-button-test.js

20 lines
598 B
JavaScript
Raw Normal View History

/* 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';
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', {
integration: true
2016-11-24 01:50:57 +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
});