From 7d24b6e0a12772d4edad0ff5183befb40fdc6750 Mon Sep 17 00:00:00 2001 From: Cameron McAteer Date: Fri, 6 Jan 2017 16:31:10 -0500 Subject: [PATCH] Update "whitespace" test to check standalone blocks --- test/rules/whitespace/all/test.js.lint | 9 +++++++++ test/rules/whitespace/all/test.ts.fix | 9 +++++++++ test/rules/whitespace/all/test.ts.lint | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/test/rules/whitespace/all/test.js.lint b/test/rules/whitespace/all/test.js.lint index 3eaf444b901..c4cc76957c6 100644 --- a/test/rules/whitespace/all/test.js.lint +++ b/test/rules/whitespace/all/test.js.lint @@ -103,3 +103,12 @@ if () {} else {} + +/* some comment */{ + // some code with a preceding comment +} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +} diff --git a/test/rules/whitespace/all/test.ts.fix b/test/rules/whitespace/all/test.ts.fix index 9804d7a84fd..091a21af295 100644 --- a/test/rules/whitespace/all/test.ts.fix +++ b/test/rules/whitespace/all/test.ts.fix @@ -83,3 +83,12 @@ if () {} else {} + +/* some comment */{ + // some code with a preceding comment +} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +} diff --git a/test/rules/whitespace/all/test.ts.lint b/test/rules/whitespace/all/test.ts.lint index 7271dbbc1c3..85b4e48bd75 100644 --- a/test/rules/whitespace/all/test.ts.lint +++ b/test/rules/whitespace/all/test.ts.lint @@ -127,3 +127,12 @@ if () {} else {} + +/* some comment */{ + // some code with a preceding comment +} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +}