Add tests for newlines before comments
This commit is contained in:
10
test/fixtures/generation/comments/2-space-multi-comment-with-space/actual.js
vendored
Normal file
10
test/fixtures/generation/comments/2-space-multi-comment-with-space/actual.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
function test() {
|
||||
|
||||
|
||||
/*
|
||||
* this is comment
|
||||
*/
|
||||
|
||||
|
||||
var i = 20;
|
||||
}
|
||||
10
test/fixtures/generation/comments/2-space-multi-comment-with-space/expected.js
vendored
Normal file
10
test/fixtures/generation/comments/2-space-multi-comment-with-space/expected.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
function test() {
|
||||
|
||||
|
||||
/*
|
||||
* this is comment
|
||||
*/
|
||||
|
||||
|
||||
var i = 20;
|
||||
}
|
||||
7
test/fixtures/generation/comments/comment-only-with-space/actual.js
vendored
Normal file
7
test/fixtures/generation/comments/comment-only-with-space/actual.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
// from #23
|
||||
|
||||
/**/
|
||||
|
||||
/*
|
||||
*/
|
||||
7
test/fixtures/generation/comments/comment-only-with-space/expected.js
vendored
Normal file
7
test/fixtures/generation/comments/comment-only-with-space/expected.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
// from #23
|
||||
|
||||
/**/
|
||||
|
||||
/*
|
||||
*/
|
||||
Reference in New Issue
Block a user