We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've seen some code that does:
let service = this.owner.lookup('service:foo'); service.setProperties({ replacement properties and methods }); // or service.foo = replacement // or Ember.set(service, 'foo', replacement)
we should lint against this, because it can cause sutle bugs.
Additionally, you end up testing your replacements, rather than the service itself.
If someone wants to
class Replacement extends Foo { get foo() { assert.step('ran foo'); // optionally return super.foo; } } this.owner.register('service:foo', Replacement);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've seen some code that does:
we should lint against this, because it can cause sutle bugs.
Additionally, you end up testing your replacements, rather than the service itself.
If someone wants to
The text was updated successfully, but these errors were encountered: