521b9dbb99
refs https://github.com/TryGhost/Ghost/issues/9311 - add `{{koenig-card-markdown}}` component that renders an auto expanding textarea with the markdown card value - add `{{card-markdown}}` that is an alias of `{{koenig-card-markdown}}` for backwards compatibility - all of our pre-1.0 alpha cards and our current markdown implementation do not have the `koenig-` prefix in their card names
25 lines
789 B
JavaScript
25 lines
789 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
|
|
describe('Integration: Component: koenig-card-markdown', function () {
|
|
setupComponentTest('koenig-card-markdown', {
|
|
integration: true
|
|
});
|
|
|
|
it('renders', function () {
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
// Handle any actions with this.on('myAction', function(val) { ... });
|
|
// Template block usage:
|
|
// this.render(hbs`
|
|
// {{#koenig-card-markdown}}
|
|
// template content
|
|
// {{/koenig-card-markdown}}
|
|
// `);
|
|
|
|
this.render(hbs`{{koenig-card-markdown}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|