',
diff --git a/tests/lib/rules/html-self-closing.js b/tests/lib/rules/html-self-closing.js
index 3623745c6..250236cab 100644
--- a/tests/lib/rules/html-self-closing.js
+++ b/tests/lib/rules/html-self-closing.js
@@ -65,7 +65,11 @@ tester.run('html-self-closing', rule, {
code: '
',
output: null,
options: [{ html: { normal: 'always' }}]
- }
+ },
+
+ // Invalid EOF
+ '