Skip to content

Commit

Permalink
chore: add failing unit test for long TS decorator that exceeds print…
Browse files Browse the repository at this point in the history
…Width
  • Loading branch information
NullVoxPopuli committed Oct 13, 2020
1 parent 73e8501 commit 4723610
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/lib/rules/decorator-position.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ tsRuleTester.run('TS: decorator-position', rule, {
`,
options: [{ overrides: { 'prefer-inline': ['@service'] } }],
},
{
code: stripIndent`
export default class Foo {
@service('addon-name/-private/do-not-use/the-name-of-the-service')
declare falconCardData: Service;
}
`,
options: [{ printWidth: 100 }],
},
],
invalid: [
{
Expand Down

0 comments on commit 4723610

Please sign in to comment.