mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
6d4d6cbc51
refs https://github.com/TryGhost/Ghost/issues/9311 - add a basic HTML card that renders a CodeMirror editor - adjust styles so that CodeMirror styles for the markdown editor don't affect CodeMirror instances inside Koenig
25 lines
774 B
JavaScript
25 lines
774 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-html', function () {
|
|
setupComponentTest('koenig-card-html', {
|
|
integration: true
|
|
});
|
|
|
|
it.skip('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-html}}
|
|
// template content
|
|
// {{/koenig-card-html}}
|
|
// `);
|
|
|
|
this.render(hbs`{{koenig-card-html}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|