Ghost/ghost/admin/tests/integration/components/koenig-plus-menu-test.js
Kevin Ansfield 2ddedb6005 Koenig - (+) card/list selection menu
refs https://github.com/TryGhost/Ghost/issues/9311
- re-implement the (+) card/list selection menu from the old Koenig alpha with improved positioning and event handling
- buttons work for the currently available cards - `<hr>` and `markdown`
2018-01-31 15:49:20 +01:00

25 lines
769 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-plus-menu', function () {
setupComponentTest('koenig-plus-menu', {
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`
// {{#koenig-plus-menu}}
// template content
// {{/koenig-plus-menu}}
// `);
this.render(hbs`{{koenig-plus-menu}}`);
expect(this.$()).to.have.length(1);
});
});