Skip to content

Commit

Permalink
Fix @ember/polyfills deprecation
Browse files Browse the repository at this point in the history
We can use Object.assign instead
  • Loading branch information
andreyfel committed Dec 29, 2023
1 parent c249df5 commit 955d71d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/helpers/start-app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import Application from '../../app';
import config from '../../config/environment';
import { merge } from '@ember/polyfills';
import { run } from '@ember/runloop';

export default function startApp(attrs) {
let attributes = merge({}, config.APP);
attributes = merge(attributes, attrs); // use defaults, but you can override;
const attributes = Object.assign({}, config.APP, attrs); // use defaults, but you can override;

return run(() => {
const application = Application.create(attributes);
Expand Down

0 comments on commit 955d71d

Please sign in to comment.