From 4723610356f34e21ee88dcc83b2c463658186bf3 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli Date: Tue, 13 Oct 2020 16:41:42 -0400 Subject: [PATCH] chore: add failing unit test for long TS decorator that exceeds printWidth --- tests/lib/rules/decorator-position.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/lib/rules/decorator-position.js b/tests/lib/rules/decorator-position.js index acbd6b2d0..525895a05 100644 --- a/tests/lib/rules/decorator-position.js +++ b/tests/lib/rules/decorator-position.js @@ -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: [ {