Skip to content

Commit

Permalink
test (vue/max-attributes-per-line): add test for max value as object (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored Jan 7, 2023
1 parent d339e2e commit 2c3d623
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/lib/rules/max-attributes-per-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,27 @@ job="Vet"></component></template>`,
options: [{ singleline: 3, multiline: 1 }],
output: `<template><component
name="John Doe"
age="30"
job="Vet">
</component>
</template>`,
errors: [
{
message: "'age' should be on a new line.",
type: 'VAttribute',
line: 2
}
]
},
{
code: `<template><component
name="John Doe" age="30"
job="Vet">
</component>
</template>`,
options: [{ multiline: { max: 1 } }],
output: `<template><component
name="John Doe"
age="30"
job="Vet">
</component>
Expand Down

0 comments on commit 2c3d623

Please sign in to comment.