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
762 B
JavaScript
25 lines
762 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-progress-bar', function() {
|
|
setupComponentTest('gh-progress-bar', {
|
|
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-progress-bar}}
|
|
// template content
|
|
// {{/gh-progress-bar}}
|
|
// `);
|
|
|
|
this.render(hbs`{{gh-progress-bar}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|