From 4b7a8c0298dedc37c7f9a3a5009b0eb5ef4a8342 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sun, 22 Jul 2018 14:48:51 +0900 Subject: [PATCH] Add test cases --- tests/lib/rules/no-warning-html-comments.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/lib/rules/no-warning-html-comments.js b/tests/lib/rules/no-warning-html-comments.js index 0d9113c2..406823e8 100644 --- a/tests/lib/rules/no-warning-html-comments.js +++ b/tests/lib/rules/no-warning-html-comments.js @@ -70,6 +70,15 @@ tester.run("no-warning-html-comments", rule, { ], filename: "test.html", }, + { + code: "", + options: [{ terms: ["%%"] }], + output: null, + errors: [ + "Unexpected '%%' comment.", + ], + filename: "test.html", + }, ],