Skip to content

Commit

Permalink
Merge pull request #20676 from emberjs/chriskrycho/fix-ts-nightly
Browse files Browse the repository at this point in the history
[BUGFIX beta] use correct syntax for computed.test.ts
  • Loading branch information
chancancode committed Apr 4, 2024
2 parents fda3b4f + 41bb1b0 commit 2e6cbb7
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 2e6cbb7

Please sign in to comment.