diff --git a/packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/actual.js b/packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/actual.js new file mode 100644 index 0000000000..a4c21377e2 --- /dev/null +++ b/packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/actual.js @@ -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' }`; +} diff --git a/packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/expected.js b/packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/expected.js new file mode 100644 index 0000000000..1f664f0ae2 --- /dev/null +++ b/packages/babel-generator/test/fixtures/harmony-edgecase/templates-indentation/expected.js @@ -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' }`; +}