From 66084e86bef4c77745a24b95c0d1e8ebbe372500 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.ts.fix | 5 +++++ test/rules/whitespace/all/test.ts.lint | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/rules/whitespace/all/test.ts.fix b/test/rules/whitespace/all/test.ts.fix index 9804d7a84fd..0900315518e 100644 --- a/test/rules/whitespace/all/test.ts.fix +++ b/test/rules/whitespace/all/test.ts.fix @@ -83,3 +83,8 @@ if () {} else {} + +{ + 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..a586835adae 100644 --- a/test/rules/whitespace/all/test.ts.lint +++ b/test/rules/whitespace/all/test.ts.lint @@ -127,3 +127,8 @@ if () {} else {} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +}