From 2c3d623b5602c7c71b72d314d91a81bb18d16614 Mon Sep 17 00:00:00 2001
From: James Garbutt <43081j@users.noreply.github.com>
Date: Sat, 7 Jan 2023 14:15:26 +0000
Subject: [PATCH] test (vue/max-attributes-per-line): add test for max value as
object (#2072)
---
tests/lib/rules/max-attributes-per-line.js | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/tests/lib/rules/max-attributes-per-line.js b/tests/lib/rules/max-attributes-per-line.js
index d8bae0580..252bd22c1 100644
--- a/tests/lib/rules/max-attributes-per-line.js
+++ b/tests/lib/rules/max-attributes-per-line.js
@@ -113,6 +113,27 @@ job="Vet">`,
options: [{ singleline: 3, multiline: 1 }],
output: `
+
+ `,
+ errors: [
+ {
+ message: "'age' should be on a new line.",
+ type: 'VAttribute',
+ line: 2
+ }
+ ]
+ },
+ {
+ code: `
+
+ `,
+ options: [{ multiline: { max: 1 } }],
+ output: `