Ghost/ghost/admin/tests/integration/components/gh-markdown-editor-test.js
Kevin Ansfield a85f5fae35 Switch to eslint-plugin-ghost extending plugin:ghost/ember
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`
2018-01-12 12:17:56 +00:00

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');
});
});