mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
762c3c4df0
no issue * move "save on first change" behaviour into editor controller * allow TAB events to be specified in keyEvents hash of gh-input * replace mobiledoc-kit/gh-koenig with a SimpleMDE based editor - remove `gh-koenig` in-repo-addon from `package.json` so that test files etc aren't loaded - remove `mobiledoc-kit` dependencies - extends `gh-editor` to handle file drag/drop - adds `gh-uploader` and `gh-progress-bar` components to handle file uploads in a more composable manner - adds `gh-simplemde` component that wraps SimpleMDE
25 lines
742 B
JavaScript
25 lines
742 B
JavaScript
import {expect} from 'chai';
|
|
import {describe, it} from 'mocha';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
describe('Integration: Component: gh-uploader', function() {
|
|
setupComponentTest('gh-uploader', {
|
|
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-uploader}}
|
|
// template content
|
|
// {{/gh-uploader}}
|
|
// `);
|
|
|
|
this.render(hbs`{{gh-uploader}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|