mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
a04adae8d2
refs https://github.com/TryGhost/Ghost/issues/9623 requires https://github.com/TryGhost/Ghost/pull/9666 - `{{koenig-card-embed}}` - URL input - perform oembed lookup & fetch on <kbd>Enter</kbd> - remove card if enter pressed with empty URL - show error message on server error - "retry" returns to input bar - "paste as link" removes card and outputs link - "X" removes card - force embedded <script> tags to run - wrap embed html with `.koenig-embed-{video,photo,rich}` class - add embed cards to the (+) and /-menus - "section" support in the card menus - refactor to use single card menu map and content component for both menus - update /-menu keyboard movement to handle sections - add parameter support to /-menu commands - `/embed {url}` will insert embed card and automatically fetch oembed for supplied url
25 lines
779 B
JavaScript
25 lines
779 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
|
|
describe('Integration: Component: koenig-card-embed', function () {
|
|
setupComponentTest('koenig-card-embed', {
|
|
integration: true
|
|
});
|
|
|
|
it.skip('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`
|
|
// {{#koenig-card-embed}}
|
|
// template content
|
|
// {{/koenig-card-embed}}
|
|
// `);
|
|
|
|
this.render(hbs`{{koenig-card-embed}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|