diff --git a/test/fixtures/codemod/latest-node/my-app/app/controllers/application.js b/test/fixtures/codemod/latest-node/my-app/app/controllers/application.js index e7df4acee..0b7962c88 100644 --- a/test/fixtures/codemod/latest-node/my-app/app/controllers/application.js +++ b/test/fixtures/codemod/latest-node/my-app/app/controllers/application.js @@ -1,3 +1,4 @@ +import { computed } from '@ember/object'; import { on } from '@ember/object/evented'; import Controller from '@ember/controller'; import Ember from 'ember'; @@ -25,6 +26,10 @@ export default Controller.extend({ // Executes whenever the "value" property changes }), + fullName3: computed('firstName', 'lastName', function() { + return `${this.firstName} ${this.lastName}`; + }), + actions: { foo(object) { this.doStuff(object); diff --git a/test/fixtures/codemod/local/my-app/app/controllers/application.js b/test/fixtures/codemod/local/my-app/app/controllers/application.js index 5a88ef326..b0ec4f434 100644 --- a/test/fixtures/codemod/local/my-app/app/controllers/application.js +++ b/test/fixtures/codemod/local/my-app/app/controllers/application.js @@ -23,6 +23,10 @@ export default Ember.Controller.extend({ // Executes whenever the "value" property changes }.observes('value'), + fullName3: function() { + return `${this.firstName} ${this.lastName}`; + }.computed('firstName', 'lastName'), + actions: { foo(object) { Ember.propertyWillChange(object, 'someProperty'); diff --git a/test/fixtures/codemod/min-node/my-app/app/controllers/application.js b/test/fixtures/codemod/min-node/my-app/app/controllers/application.js index e7df4acee..0b7962c88 100644 --- a/test/fixtures/codemod/min-node/my-app/app/controllers/application.js +++ b/test/fixtures/codemod/min-node/my-app/app/controllers/application.js @@ -1,3 +1,4 @@ +import { computed } from '@ember/object'; import { on } from '@ember/object/evented'; import Controller from '@ember/controller'; import Ember from 'ember'; @@ -25,6 +26,10 @@ export default Controller.extend({ // Executes whenever the "value" property changes }), + fullName3: computed('firstName', 'lastName', function() { + return `${this.firstName} ${this.lastName}`; + }), + actions: { foo(object) { this.doStuff(object);