Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Update "whitespace" test to check standalone blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-mcateer committed Jan 6, 2017
1 parent 2ee96bc commit 7d24b6e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/rules/whitespace/all/test.js.lint
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
9 changes: 9 additions & 0 deletions test/rules/whitespace/all/test.ts.fix
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
9 changes: 9 additions & 0 deletions test/rules/whitespace/all/test.ts.lint
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7d24b6e

Please sign in to comment.