1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/tests/integration/components/gh-markdown-editor-test.js
Kevin Ansfield 7afb88a0c2 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

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