Skip to content

Commit 326d36d

Browse files
committed
revert: remove template-attribute-order tests (rule is not a port of upstream)
1 parent 9feeb97 commit 326d36d

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

tests/lib/rules/template-attribute-order.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ ruleTester.run('template-attribute-order', rule, {
1818
'<template><div aria-label="x" aria-hidden="true"></div></template>',
1919
// Correct full order
2020
'<template><input class="x" id="y" role="r" aria-label="l" data-test-foo="1" type="text" name="n" value="v" placeholder="p" disabled></template>',
21-
// Custom order config: id before class is valid when order is ['id', 'class']
22-
{
23-
code: '<template><div id="bar" class="foo"></div></template>',
24-
options: [{ order: ['id', 'class'] }],
25-
},
2621
],
2722

2823
invalid: [
@@ -65,19 +60,5 @@ ruleTester.run('template-attribute-order', rule, {
6560
output: '<template><div\n class="y"\n name="x"\n></div></template>',
6661
errors: [{ messageId: 'wrongOrder' }],
6762
},
68-
// Custom order: id before class
69-
{
70-
code: '<template><div class="foo" id="bar"></div></template>',
71-
output: '<template><div id="bar" class="foo"></div></template>',
72-
options: [{ order: ['id', 'class'] }],
73-
errors: [{ messageId: 'wrongOrder' }],
74-
},
75-
// Custom order: role, class
76-
{
77-
code: '<template><div class="btn" role="button"></div></template>',
78-
output: '<template><div role="button" class="btn"></div></template>',
79-
options: [{ order: ['role', 'class'] }],
80-
errors: [{ messageId: 'wrongOrder' }],
81-
},
8263
],
8364
});

0 commit comments

Comments
 (0)