add fixtures for #2613
This commit is contained in:
parent
30311d121e
commit
f5bbd09b49
18
packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/actual.js
vendored
Normal file
18
packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/actual.js
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
function multilineTemplate() {
|
||||
return `I'm done reconfoobling
|
||||
${ 'the energy motron' }
|
||||
${'...or whatever'}`;
|
||||
}
|
||||
|
||||
{
|
||||
const foo = `spam
|
||||
and eggs!`;
|
||||
|
||||
const bar = `${
|
||||
4 +
|
||||
2
|
||||
}`;
|
||||
|
||||
const hello = `Hello
|
||||
${ 'world' }`;
|
||||
}
|
||||
15
packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/expected.js
vendored
Normal file
15
packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/expected.js
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
function multilineTemplate() {
|
||||
return `I'm done reconfoobling
|
||||
${ 'the energy motron' }
|
||||
${ '...or whatever' }`;
|
||||
}
|
||||
|
||||
{
|
||||
const foo = `spam
|
||||
and eggs!`;
|
||||
|
||||
const bar = `${ 4 + 2 }`;
|
||||
|
||||
const hello = `Hello
|
||||
${ 'world' }`;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user