Skip to content

Commit

Permalink
test(require-tagless-components): add Service tests
Browse files Browse the repository at this point in the history
Adding tests to validate #601
  • Loading branch information
alexlafroscia committed Nov 21, 2019
1 parent 535cb40 commit ba714c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/lib/rules/require-tagless-components.js
Expand Up @@ -56,6 +56,14 @@ ruleTester.run('require-tagless-components', rule, {
tagName = 'some-non-empty-value';
}
`,
`
import Service from '@ember/service';
export default Service.extend({});
`,
`
import Service from '@ember/service';
export default class MyService extends Service {}
`,
],
invalid: [
{
Expand Down

0 comments on commit ba714c5

Please sign in to comment.