code generator: add terminator parentheses test
This commit is contained in:
parent
e5cb0cf32c
commit
ecf54eeae1
12
packages/babel/test/fixtures/generation/parentheses/terminator-break/actual.js
vendored
Normal file
12
packages/babel/test/fixtures/generation/parentheses/terminator-break/actual.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
function foo() {
|
||||
return ( // foobar
|
||||
"bar"
|
||||
);
|
||||
}
|
||||
|
||||
function foo() {
|
||||
return (
|
||||
// foobar
|
||||
"bar"
|
||||
);
|
||||
}
|
||||
12
packages/babel/test/fixtures/generation/parentheses/terminator-break/expected.js
vendored
Normal file
12
packages/babel/test/fixtures/generation/parentheses/terminator-break/expected.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
function foo() {
|
||||
return (// foobar
|
||||
"bar"
|
||||
);
|
||||
}
|
||||
|
||||
function foo() {
|
||||
return(
|
||||
// foobar
|
||||
"bar"
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user