Skip to content

Commit

Permalink
[BUGFIX beta] use correct syntax for computed.test.ts
Browse files Browse the repository at this point in the history
(cherry picked from commit 41bb1b0)
  • Loading branch information
chriskrycho authored and kategengler committed Apr 15, 2024
1 parent a80cf9f commit 21fe7e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/@ember/object/type-tests/computed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Foo {
return `${this.firstName} ${this.lastName}`;
}

@computed('firstName', 'lastName').readOnly()
@(computed('firstName', 'lastName').readOnly())
get readonlyFullName() {
return `${this.firstName} ${this.lastName}`;
}
Expand Down
4 changes: 2 additions & 2 deletions type-tests/@ember/object-test/computed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Person extends EmberObject {
return `${this.get('firstName')} ${this.get('lastName')}`;
}

@computed('fullName').readOnly()
@(computed('fullName').readOnly())
get fullNameReadonly() {
return this.get('fullName');
}
Expand All @@ -73,7 +73,7 @@ class Person extends EmberObject {
this.set('lastName', last);
}

@computed().meta({ foo: 'bar' }).readOnly()
@(computed().meta({ foo: 'bar' }).readOnly())
get combinators() {
return this.get('firstName');
}
Expand Down
4 changes: 2 additions & 2 deletions type-tests/ember/computed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Person extends Ember.Object {
return `${this.get('firstName')} ${this.get('lastName')}`;
}

@Ember.computed('fullName').readOnly()
@(Ember.computed('fullName').readOnly())
get fullNameReadonly() {
return this.get('fullName');
}
Expand All @@ -39,7 +39,7 @@ class Person extends Ember.Object {
this.set('lastName', last);
}

@Ember.computed().meta({ foo: 'bar' }).readOnly()
@(Ember.computed().meta({ foo: 'bar' }).readOnly())
get combinators() {
return this.get('firstName');
}
Expand Down

0 comments on commit 21fe7e0

Please sign in to comment.