a85f5fae35
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`
31 lines
775 B
JavaScript
31 lines
775 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
import {startMirage} from 'ghost-admin/initializers/ember-cli-mirage';
|
|
|
|
describe('Integration: Component: gh-publishmenu', function () {
|
|
setupComponentTest('gh-publishmenu', {
|
|
integration: true
|
|
});
|
|
|
|
let server;
|
|
|
|
beforeEach(function () {
|
|
server = startMirage();
|
|
server.loadFixtures();
|
|
|
|
server.create('user');
|
|
});
|
|
|
|
afterEach(function () {
|
|
server.shutdown();
|
|
});
|
|
|
|
it('renders', function () {
|
|
this.post = server.create('post');
|
|
this.render(hbs`{{gh-publishmenu post=post}}`);
|
|
expect(this.$()).to.have.length(1);
|
|
});
|
|
});
|