Skip to content

Commit c88961d

Browse files
committed
add test
1 parent 5dea7a4 commit c88961d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/rules/no-html.test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,5 +312,25 @@ ruleTester.run("no-html", rule, {
312312
},
313313
],
314314
},
315+
{
316+
code: dedent`
317+
<!-- comment -->
318+
<input
319+
placeholder="Enter name"
320+
name="First Name"
321+
/>`,
322+
errors: [
323+
{
324+
messageId: "disallowedElement",
325+
line: 2,
326+
column: 1,
327+
endLine: 2,
328+
endColumn: 7,
329+
data: {
330+
name: "input",
331+
},
332+
},
333+
],
334+
},
315335
],
316336
});

0 commit comments

Comments
 (0)