Skip to content

Commit a60f71f

Browse files
committed
Add a failing test
1 parent 785a556 commit a60f71f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test/unit/rules/lint-prettier-test.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ test
3939
isFixable: true
4040
}
4141
},
42+
{
43+
config: true,
44+
template: `<div data-foo
45+
data-bar="lol"
46+
some-other-thing={{haha-morethaneightychars}}>
47+
</div>`,
48+
fixedTemplate: `<div data-foo
49+
data-bar="lol"
50+
some-other-thing={{haha-morethaneightychars}}>
51+
</div>`,
52+
result: {
53+
moduleId: "layout",
54+
message: 'Replace `⏎·data-bar="lol"⏎·····` with ` data-bar="lol"`',
55+
line: 1,
56+
column: 13,
57+
source: `<div data-foo
58+
data-bar="lol"
59+
some-other-thing={{haha-morethaneightychars}}>
60+
</div>`,
61+
isFixable: true
62+
}
63+
},
4264
{
4365
config: true,
4466
template: "test\n",

0 commit comments

Comments
 (0)