Ghost/ghost/admin/tests/integration/components/gh-publishmenu-test.js
Kevin Ansfield a85f5fae35 Switch to eslint-plugin-ghost extending plugin:ghost/ember
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`
2018-01-12 12:17:56 +00:00

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);
});
});