2017-05-29 21:50:03 +03:00
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
2017-04-11 16:39:45 +03:00
|
|
|
import {describe, it} from 'mocha';
|
2017-05-29 21:50:03 +03:00
|
|
|
import {expect} from 'chai';
|
2017-04-11 16:39:45 +03:00
|
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
|
|
import {startMirage} from 'ghost-admin/initializers/ember-cli-mirage';
|
|
|
|
|
2018-01-05 18:38:23 +03:00
|
|
|
describe('Integration: Component: gh-publishmenu', function () {
|
2017-04-11 16:39:45 +03:00
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|