import Application from "../../app";
import config from "../../config/environment";
import { assign } from "@ember/polyfills";
import { run } from "@ember/runloop";

export default function startApp(attrs) {
  let application;

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

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

  return application;
}

import Application from "../../app";
import config from "../../config/environment";
import { run } from "@ember/runloop";

export default function startApp(attrs) {
  let application;

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

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

  return application;
}

Remove use of assign polyfill (#140)