mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 04:10:33 +03:00
a85f5fae35
no issue - fix lint errors in lib/gh-koenig - fix ghost:base eslint errors - update ember plugin refs, remove ember-suave plugin refs - remove old jshint refs - add `lint:js` script - switch to `eslint-plugin-ghost` extending `plugin:ghost/ember`
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
|
|
describe('Integration: Component: gh-markdown-editor', function () {
|
|
setupComponentTest('gh-markdown-editor', {
|
|
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`
|
|
// {{#gh-markdown-editor}}
|
|
// template content
|
|
// {{/gh-markdown-editor}}
|
|
// `);
|
|
|
|
this.render(hbs`{{gh-markdown-editor}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
|
|
describe('unsplash', function () {
|
|
it('has unsplash icon in toolbar if unsplash is active');
|
|
it('opens unsplash modal when clicked');
|
|
it('closes unsplash modal when close triggered');
|
|
it('inserts unsplash image & credit when selected');
|
|
it('inserts at cursor when editor has focus');
|
|
it('inserts at end when editor is blurred');
|
|
});
|
|
});
|