From f7759021b4fabaff98346c52372d7423c227a5b9 Mon Sep 17 00:00:00 2001 From: YeonJuan Date: Sat, 14 Dec 2024 18:03:10 +0900 Subject: [PATCH] add tests --- .../eslint-plugin/tests/rules/indent.test.js | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/eslint-plugin/tests/rules/indent.test.js b/packages/eslint-plugin/tests/rules/indent.test.js index 93741b1..36d33a2 100644 --- a/packages/eslint-plugin/tests/rules/indent.test.js +++ b/packages/eslint-plugin/tests/rules/indent.test.js @@ -1366,5 +1366,37 @@ class Component extends LitElement { options: [2, { Attribute: 2 }], errors: wrongIndentErrors(2), }, + { + code: ` +class Component extends LitElement { +\trender() { +\t\treturn html\` +\t\t\t
+\t\t\t\t +\t\t\t
+\t\t\t +\t\t\t\t
+\t\t\t
+ \`; + } +} + `, + output: ` +class Component extends LitElement { +\trender() { +\t\treturn html\` +\t\t\t
+\t\t\t\t +\t\t\t
+\t\t\t +\t\t\t\t\t
+\t\t\t
+ \`; + } +} + `, + options: ["tab", { Attribute: 2, tagChildrenIndent: { span: 2 } }], + errors: wrongIndentErrors(1), + }, ], });