Ghost/ghost/admin/tests/helpers/start-app.js
Kevin Ansfield ea8b4277b0 add dropdown filters for post type, author, and tag (#554)
refs TryGhost/Ghost#7860
- removes post type filter links
- adds dropdown filters for post type, author, and tag
- replaces custom refresh on query params change with Ember's standard `refreshModel` config
2017-03-02 12:35:09 -06:00

25 lines
736 B
JavaScript

import {assign} from 'ember-platform';
import run from 'ember-runloop';
import Application from '../../app';
import config from '../../config/environment';
import registerPowerSelectHelpers from '../../tests/helpers/ember-power-select';
// eslint-disable-next-line no-unused-vars
import fileUpload from './file-upload';
registerPowerSelectHelpers();
export default function startApp(attrs) {
let application;
let attributes = assign({}, config.APP);
attributes = assign(attributes, attrs); // use defaults, but you can override;
run(function () {
application = Application.create(attributes);
application.setupForTesting();
application.injectTestHelpers();
});
return application;
}