Skip to content

Instantly share code, notes, and snippets.

@whymarrh
Created February 27, 2017 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whymarrh/9062422c9fe7cf085904e4663836624a to your computer and use it in GitHub Desktop.
Save whymarrh/9062422c9fe7cf085904e4663836624a to your computer and use it in GitHub Desktop.
diff --git a/test/lib/rules/strict-newline.js b/test/lib/rules/strict-newline.js
index cb6500e..646b376 100644
--- a/test/lib/rules/strict-newline.js
+++ b/test/lib/rules/strict-newline.js
@@ -11,6 +11,17 @@ var ruleTester = new RuleTester();
ruleTester.run('strict-newline', rule, {
valid: [
{
+ code: 'var a;',
+ parserOptions: parserOptions
+ },
+ {
+ code: [
+ 'var a;',
+ 'var b;'
+ ].join('\n'),
+ parserOptions: parserOptions
+ },
+ {
code: [
'"use strict"',
'',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment