cms/app-client/tests/helpers/start-app.js
author ymh <ymh.work@gmail.com>
Thu, 19 Jan 2017 13:53:17 +0100
changeset 490 76da86cf9696
parent 456 3a32d2f57429
child 511 fbf4e1afab01
permissions -rw-r--r--
External OLAC links leads now to the OLAC documentation. Closes #0025936

import Ember from 'ember';
import Application from '../../app';
import config from '../../config/environment';

export default function startApp(attrs) {
  let application;

  // use defaults, but you can override
  let attributes = Ember.assign({}, config.APP, attrs);

  Ember.run(() => {
    application = Application.create(attributes);
    application.setupForTesting();
    application.injectTestHelpers();
  });

  return application;
}